Commit Graph
14659 Commits
Author SHA1 Message Date
JeffandGitHub 56f8ff0dc8 Bump chia-blockchain-gui to bb48038171a03c8f1a26f537240506bda6f1141c (#14400)
Includes:
Support for interacting with offer notifications (more fixes coming)
Support for sending offer notifications
Bulk NFT DID assignment
Bulk NFT transfer
Improvements to settings pages
Offer builder allows offers without anything requested

Fixes:
Allow useMode without provider until user try to change mode (#1329)
Fixed [BUG] Cannot read properties of undefined (reading 'map') (#1330)
Fixed multiplier issue when real fee estimates are available (#1334)
2023-01-25 19:31:33 -06:00
Almog De PazandGitHub 3f97435159 dont announce none response capability to peers (#14386)
* dont announce none response capability to peers

* comment out none response handling

* skip test instead of comment out
2023-01-25 13:53:38 -06:00
c107001334 Add SigningMode and update verify_signature RPC to work with sign_message_by_* RPCs (#14213)
* Updated `verify_signature` RPC to support signatures made by `sign_message_by_*` RPCs

* Updated RPC to use "signing_mode" param name with value "chip_0002"
Added CHIP_0002_SIGN_MESSAGE_PREFIX string constant

* Tests for verify_signature

* Update chia/wallet/wallet.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Adds SigningMode enum with CHIP-0002 and BLS message augmentation schemes
chia keys sign/verify support JSON output
chia keys verify now accepts the -b as_bytes option

* Fix a mypy warning

* Updated link to CHIP-0002

* isort

* Fix tests

* improve error handling

* comment how test data was generated

* Update chia/rpc/wallet_rpc_api.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Update chia/rpc/wallet_rpc_api.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-01-25 12:44:37 -06:00
Amine KhaldiandGitHub 05f1d257b4 Add a unit test for sending a spend bundle twice with a different spends order (and a coin eligible for deduplication) (#14387)
Add a unit test for sending a spend bundle twice with a different spends order (and a coin eligible for deduplication).
2023-01-25 09:59:47 -06:00
wjblankeandGitHub efcf439474 Fixed wallet state if db is rolled back (#14384)
* fix wallet state if db is rolled back

* flake8

* better location of copy
2023-01-25 09:58:20 -06:00
Kyle AltendorfandGitHub e6e47dc3ea any coverage, (7.0.2 error fixed in 7.0.3) (#14269)
https://github.com/Chia-Network/chia-blockchain/pull/14255
2023-01-25 09:57:52 -06:00
Jack NelsonandGitHub 99fbb056e1 Fix chia wallet coins cli bugs (#14388)
* fix fee bug

The fee should not be taken into account when dealing with CAT's or other non XCH coins.

* fix broken CAT removals

it was never implemented ...

* Update wallet_rpc_api.py
2023-01-24 19:33:25 -06:00
Amine KhaldiandGitHub 69c7172152 Add a unit test for sending a spend bundle (with a coin eligible for deduplication) twice (#14374)
* Add a unit test for sending a spend bundle (with a coin eligible for deduplication) twice.

* Have spend_bundle_from_conditions take a coin that defaults to TEST_COIN.

* Improve the expected cost readability.

* Prepare get_coin_record_for_test_coins for reuse in future tests.
2023-01-24 12:04:09 -06:00
Adam KellyandGitHub 9f0220771f Limit rate of log messages when farmer is disconnected from pool (#14344)
* Limit rate of spammy log messages when farmer is disconnected from pool

* Remove typo

* Use reliably increasing clock

* Make test faster, more reliable
2023-01-23 16:43:42 -06:00
Geoff WalmsleyandGitHub b480aded31 Fix target puz hash index for bulk mint nfts with airdrop (#14370)
* fix indexing for target puzhashes in nft bulk minting

* make pylint happy
2023-01-21 13:00:31 -06:00
Matt HauffandGitHub 6d44c96ea4 Make the --id flag on cancel_offer required (#14376)
Make the --id flag on cancel_offer required
2023-01-20 12:02:40 -06:00
Kronus91andGitHub ad51c3c251 Fix bulk tx (#14372)
* Add NFT bulk transfer API

* Fix pre-commit

* Improve unit test

* Fix precommit

* Improve unit test

* Fix response json serialization

* Fix bulk API missing transaction

* Remove print
2023-01-20 12:02:17 -06:00
7bdf7dc478 Change names used to look up estimated spendbundle sizes in get_fee_estimate RPC (#14369)
* Change names used to look up estimated spendbundle sizes in get_fee_estimate RPC

* Update tests

* add test for get_spendbundle_type_cost

* add spend_count to get_fee_estimate

* Update chia/rpc/full_node_rpc_api.py

Co-authored-by: Jeff <jeff@chia.net>

Co-authored-by: Jeff <jeff@chia.net>
2023-01-20 11:59:08 -06:00
Matt HauffandGitHub 8e0cabad7e Add the expected offer ID to some RPCs that take offer blobs (#14366)
* Add the exected offer ID to some RPCs that take offer blobs

* Add ID to client too

* black
2023-01-20 11:58:23 -06:00
902f99e047 CA Cert updates (#14373)
adding ca updates

Co-authored-by: ChiaAutomation <automation@chia.net>
2023-01-20 11:55:46 -06:00
Earle LoweandGitHub 71d9e981c3 Make sure to close the DL WalletRpcClient on DL shutdown (#14337)
close walletrpcclient on shutdown
1.7.0-b6
2023-01-19 17:08:12 -06:00
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 AltendorfandGitHub 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 KellyandGitHub 0f2995e4a1 Move table of SpendBundle costs to backend (#14367) 2023-01-19 15:39:35 -06:00
dustinfaceandGitHub a91265ffff tests: Drop unused PeerInfos (#14122) 2023-01-19 15:37:41 -06:00
Geoff WalmsleyandGitHub 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 KellyandGitHub 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 AllenandGitHub 9db6073351 Fixing snyk secret check (#14363) 2023-01-19 14:42:59 -06:00
Kronus91andGitHub 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
JeffandGitHub 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 HauffandGitHub 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 MaslanaandGitHub 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 PathakandGitHub 7dda98e3ac update copyright year to 2023 (#14358)
update copyright year
2023-01-17 15:37:50 -07:00
Chida82andGitHub f7d6084dad Add gzip support to Data Layer download client (#14320)
add gzip
2023-01-17 12:15:49 -06:00
Sebastjan TrepcaandGitHub c7eeaa64e6 fix offer cancel balance (#14342) 2023-01-13 18:47:07 -06:00
Adam KellyandGitHub 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 KhaldiandGitHub 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 KellyandGitHub 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 KellyandGitHub 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 SteppandGitHub 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 PazandGitHub e7e696af4a add rate limits numbers to none response type (#14184) 2023-01-12 03:42:55 -06:00
Arvid NorbergandGitHub 0f9e4ee41a infrastructure for upcoming soft-fork (#14302)
soft-fork infrastructure
2023-01-12 03:08:59 -06:00
Amine KhaldiandGitHub 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 LoweandGitHub 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
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 NorbergandGitHub 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 KellyandGitHub 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
artyandGitHub 4c5319bcbf Update version of clvm_tools_rs to 0.1.30 (#14327) 2023-01-10 18:51:24 -06:00
f55fe8402c CA Cert updates (#14324)
adding ca updates

Co-authored-by: ChiaAutomation <automation@chia.net>
2023-01-10 18:51:09 -06:00
Adam KellyandGitHub 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
1.7.0-b5
2023-01-09 15:30:14 -06:00
Earle LoweandGitHub b6596f9a9f Fix up doc string for get_mempool_item (#14300)
Fix up doc string
2023-01-09 15:29:18 -06:00
dustinfaceandGitHub ba562305cd full_node: Use ConsensusConstants.MAX_BLOCK_COUNT_PER_REQUESTS (#14313) 2023-01-09 15:29:02 -06:00
Amine KhaldiandGitHub 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
dustinfaceandGitHub 390b0f677f tests: Use set literal in test_subscriptions.py (#14311) 2023-01-09 14:41:58 -06:00
JeffandGitHub 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