Commit graph

10192 commits

Author SHA1 Message Date
William Allen
e3ec9484b0
Setting actions version to latest (#14361)
* Setting actions version to latest

* Fix decode-base64-into-file-action version

Cannot use normal versioning as https://github.com/kitek/decode-base64-into-file-action does not use semver and GHA cannot interpret the version without the exact version specified.

* Satisfying new version shellcheck linting test

Co-authored-by: Zachary Brown <z.brown@chia.net>
2023-01-19 17:00:41 -06:00
Kyle Altendorf
cdacd43038
include dev deps for snyk (#13471)
* make setup.py more normal, except in our exceptional case

* include dev deps for snyk

* Update setup.py
2023-01-19 15:40:32 -06:00
Adam Kelly
0f2995e4a1
Move table of SpendBundle costs to backend (#14367) 2023-01-19 15:39:35 -06:00
dustinface
a91265ffff
tests: Drop unused PeerInfos (#14122) 2023-01-19 15:37:41 -06:00
Geoff Walmsley
443875e945
Enable setting time between blocks in full node sim (#14310)
remove the reset on time_per_block in full node sim
2023-01-19 15:32:46 -06:00
Adam Kelly
5ba71957d8
Display complete exception info in log file (#14319)
* Display complete exception info in logfile

* Update mempool tests

* Update mempool tests
2023-01-19 15:31:26 -06:00
William Allen
9db6073351
Fixing snyk secret check (#14363) 2023-01-19 14:42:59 -06:00
Kronus91
35b6738c49
Nft bulk transfer (#14329)
* Add NFT bulk transfer API

* Fix pre-commit

* Improve unit test

* Fix precommit

* Improve unit test

* Fix response json serialization
2023-01-19 13:21:04 -06:00
Jeff
b4c7464af1
Bump chia-blockchain-gui to 4765d99539cdecb8704d39180f4854416b3a8f64 (#14359)
Changes include:
Update version check to account for '+' (PEP440 local version)
Fix metadata cache retrieval from local storage
Add support for navigating left and right between NFT details
Bump Electron version to 22.0.1
NFT gallery cosmetic fixes
Display fee estimator when in wallet-only mode
Fix locale decimal separator issue with fees
Top header redesign
Clear NFT cache option now nukes NFT local storage keys/values
NFT gallery multiselect options to select all and deselect all
2023-01-19 13:19:09 -06:00
Matt Hauff
8bb8ae5fea
Add a wallet RPC for converting heights to timestamps (#14357)
* Add a wallet RPC for converting heights to timestamps

* flake8
2023-01-18 13:55:06 -06:00
Patrick Maslana
7b660956db
Add a workflow for scanning python deps for chia-blockchain (#13973)
* Add a workflow for scanning python deps for chia-blockchain

Signed-off-by: wallentx <william.allentx@gmail.com>

* Add a blank line to separate steps and move the test secret step

Signed-off-by: wallentx <william.allentx@gmail.com>

Signed-off-by: wallentx <william.allentx@gmail.com>
2023-01-18 00:17:59 -06:00
Niraj Pathak
7dda98e3ac
update copyright year to 2023 (#14358)
update copyright year
2023-01-17 15:37:50 -07:00
Chida82
f7d6084dad
Add gzip support to Data Layer download client (#14320)
add gzip
2023-01-17 12:15:49 -06:00
Sebastjan Trepca
c7eeaa64e6
fix offer cancel balance (#14342) 2023-01-13 18:47:07 -06:00
Adam Kelly
d83c93bb2b
It is okay to return a result in some cases when median == -1 (#14285)
* It is okay to return a result in some cases when median == -1. These cases are handled in the call to parse()

* Remove incorrect test
2023-01-13 16:09:40 -06:00
Amine Khaldi
5303c0eecc
Add a unit test for mempool unknown unspent check (#14341)
Add a unit test for mempool unknown unspent check.
2023-01-13 12:51:24 -06:00
Adam Kelly
e59666b319
Improve command line info display for fee estimation (#14336)
* Improve command line info display for fee estimation

* Update test
2023-01-13 12:23:22 -06:00
Adam Kelly
06eb18217e
Test get_bucket_index (#14294)
* Test get_bucket_index

* Apply epsilon to test constants

* Simplify get_bucket_index
2023-01-13 11:16:23 -06:00
Steve Stepp
745ae8496c
Fixed condition to check for wallet_id (#14306)
Fix second condition to check for wallet_id

The second condition for the OR statement was the same as the first. It should be verifying that a wallet_id was passed in.
2023-01-12 13:03:40 -06:00
Almog De Paz
e7e696af4a
add rate limits numbers to none response type (#14184) 2023-01-12 03:42:55 -06:00
Arvid Norberg
0f9e4ee41a
infrastructure for upcoming soft-fork (#14302)
soft-fork infrastructure
2023-01-12 03:08:59 -06:00
Amine Khaldi
2f5bbd6875
Add a unit test for mempool reserve fee check (#14323)
Add a unit test for mempool reserve fee check.
2023-01-12 01:09:53 -06:00
Earle Lowe
062dde7e24
Check for valid timeout and log error (#14304)
* Handle edge case for missing pool state

* add proper check

* Switch to error from warning
2023-01-12 01:09:03 -06:00
Arvid Norberg
0ce46bc566
disallow empty SpendBundles in the mempool (#14305)
* disallow empty SpendBundles from being added to the mempool

* Update chia/full_node/mempool_manager.py

Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>

Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>
2023-01-10 18:57:12 -06:00
Arvid Norberg
ff3bb5c72e
optimize mempool's potential cache (#14297)
split potential cache into conflict- and pending cache. The pending cache can be organized more efficiently and can have higher capacity
2023-01-10 18:56:50 -06:00
Adam Kelly
199bbb912e
Try each Chia DNS Server in list before trying introducers (#14253)
* When looking for peers, try all DNS servers first, then try the introducer. Start from a random dns server each restart.

* Simplify randomizing dns server order
2023-01-10 18:56:17 -06:00
arty
4c5319bcbf
Update version of clvm_tools_rs to 0.1.30 (#14327) 2023-01-10 18:51:24 -06:00
github-actions[bot]
f55fe8402c
CA Cert updates (#14324)
adding ca updates

Co-authored-by: ChiaAutomation <automation@chia.net>
2023-01-10 18:51:09 -06:00
Adam Kelly
c7597a1e82
Reduce lower limit of tx per block seen at a certain fee rate, so estimates are produced sooner (#14291)
Reduce lower limit of tx per block seen at a certain fee rate, so that we produce estimates sooner
2023-01-09 15:30:14 -06:00
Earle Lowe
b6596f9a9f
Fix up doc string for get_mempool_item (#14300)
Fix up doc string
2023-01-09 15:29:18 -06:00
dustinface
ba562305cd
full_node: Use ConsensusConstants.MAX_BLOCK_COUNT_PER_REQUESTS (#14313) 2023-01-09 15:29:02 -06:00
Amine Khaldi
85ff27f9fa
Add a unit test for mempool minting coin check (#14314)
Add a unit test for mempool minting coin check.
2023-01-09 15:28:31 -06:00
dustinface
390b0f677f
tests: Use set literal in test_subscriptions.py (#14311) 2023-01-09 14:41:58 -06:00
Jeff
bb9720c2c3
Bump chia-blockchain-gui to d4c0f2863aefdfd679532928a1d46f92bbd02bf2 (#14317)
Includes:
Fix for NFT metadata not displaying properly
Optimizations for displaying large NFT galleries
Added an button to clear the NFT cache in Settings --> NFT
NFT gallery now remembers the scroll position when navigating between
  the gallery and NFT details
Fixes to the NFT gallery searching/filtering capabilities
Fixed an issue where text field component did not recognize rules
2023-01-09 14:40:23 -06:00
Kyle Altendorf
e8262e945f
coverage use [run] source_pkgs= instead of source= (#14164)
This avoids some collisions in some coverage reports between files in `chia/` and `tests/`.  Minimal example in https://github.com/altendky/example001 and "real" trouble observed in https://github.com/Chia-Network/chia-blockchain/pull/14141/files.
2023-01-06 16:59:41 -06:00
Kyle Altendorf
7caab0af58
Remove the rest of uvloop (#14191)
* Remove the rest of uvloop

The extra was removed at cc062976ea, should have removed the rest of the code too.

* isort
2023-01-06 16:59:28 -06:00
Kyle Altendorf
22507d7ade
psutil==5.9.4 (#14216)
for abi3 wheels for python 3.11 support

extracted from https://github.com/Chia-Network/chia-blockchain/pull/11407
2023-01-06 16:56:26 -06:00
Kyle Altendorf
d6088c1e1c
watchdog==2.2.0 (#14217)
for python 3.11 wheels

extracted from https://github.com/Chia-Network/chia-blockchain/pull/11407
2023-01-06 16:56:15 -06:00
Kyle Altendorf
e223fa18e7
chiabip158==1.2 (#14218)
for python 3.11 wheels. https://github.com/Chia-Network/chiabip158/compare/1.1...1.2

extracted from https://github.com/Chia-Network/chia-blockchain/pull/11407
2023-01-06 16:56:00 -06:00
Kyle Altendorf
8ef43dcb30
make PR template headings actual markdown headings (#14240) 2023-01-06 16:55:40 -06:00
Kyle Altendorf
69b38bea73
@functools.wraps() for the API request decorators (#14234)
Without this the representation of the resulting methods look like `<function api_request.<locals>.inner.<locals>.wrapper at 0x7ff7ff655990>`.  With, they are identifiable as to the method they wrap such as `<function FullNodeAPI.request_peers at 0x7fcc85d0d990>`.
2023-01-06 16:55:26 -06:00
Kyle Altendorf
e0fc98661f
include windows coverage (#13587)
* try out proposed windows coverage combining fix

* Add [paths]

* diagnostics

* more complete paths section

* --only core.cmds

* Update test.yml

* Update test.yml

* --debug=pathmap

* ini-form

* Remove [paths]

* remove some debug

* remove --only core/cmds

* Update setup.py

* coverage[toml]==7.0.0b1

* coverage[toml]~=7.0
2023-01-06 16:55:07 -06:00
Kyle Altendorf
6cbf6f3c63
Use Chia-Network/actions/check-commit-signing (#13923)
* Use Chia-Network/actions/check-commit-signing

* @add_check_commit_signing

* use @main

* move check commit signing to a dedicated workflow

* Update check-commit-signing.yml
2023-01-06 16:54:11 -06:00
Adam Kelly
b71eaa0a8e
Call method to process transactions added to mempool in Fee Estimator (#14290) 2023-01-06 14:18:52 -06:00
Chida82
5fd468df15
Add proxy support to Data Layer download client (#14281)
* add proxy

* fix format document

* format document

* fix whitespace

* fix end of file
2023-01-06 14:18:36 -06:00
Jack Nelson
1796206f25
Fix fee and unit amounts when coin splitting or viewing coins (#14172)
* fix fee ammt

* remove unit type

* fix fee calc

* Revert "Merge commit '30b9173eb205db5476b72bba8ef61dd2c3d34645' into checkpoint/main_from_release_1.6.2_30b9173eb205db5476b72bba8ef61dd2c3d34645"

This reverts commit 9884a729ac, reversing
changes made to 39d733599d.

* clear up cli args

* Update coins.py

* fix lint

* add seperate error for only 1 coin with combine.
2023-01-06 12:05:17 -06:00
Adam Kelly
53a3661555
Check if a SpendBundle was included in a block BEFORE removing it from the Mempool (#14293) 2023-01-06 12:01:14 -06:00
Adam Kelly
00480ccd1b
Remove conflicting TXs before adding SpendBundle to Mempool in add_spend_bundle (#14292) 2023-01-06 12:00:54 -06:00
Adam Kelly
8e764eb05e
Fix computation of moving averages (#14288) 2023-01-06 11:59:30 -06:00
Adam Kelly
2d54068456
Tune Fee Estimator parameter so that lowest suggested fee rate is 5 Mojo per CLVM cost (#14286) 2023-01-06 11:59:01 -06:00