Commit Graph

10224 Commits

Author SHA1 Message Date
Arvid Norberg
d315097b2a
full node optimizations (#14562)
implement async opt merge

Co-authored-by: William Allen <wallentx@users.noreply.github.com>
Co-authored-by: Florin Chirica <16658074+fchirica@users.noreply.github.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-02-13 22:34:31 -06:00
Jeff
de8a4064d1
Bump chia-blockchain-gui to e1d2451d8518f5016cd0fc792a40fcb264fc8c15 (#14564)
Includes:
fixed default values during setValue (#1470), fixes new WalletConnect connections
2023-02-13 17:39:39 -06:00
Matt Hauff
5f737cc094
Purposefully break offer compression for older versions (#14535)
* Purposefully break compression for older versions

* be slightly more optimal
2023-02-09 16:36:10 -06:00
Jeff
de4f48700e
Bump chia-blockchain-gui to b39c4339e83902da14320dd555dd8394dc6dcdd8 (#14510)
Includes:
fix infinite re-rendering bug when defaultValue object value is returned (#1444)
2023-02-07 18:11:12 -06:00
Matt Hauff
9cc25cc820
Quex.offer mod tests (#14478)
* add test

* do some forwards compat stuff

* Add a forwards compat example

* fix test

* Add more forwards compat tests

* Add more forwads compat tests

* Add forwards compatibility for nft1s

* add forward compatibility for nft offers

* Add forwards compatibility tests for DL offers

* Update DL test offers

* lint

* isort

* offer mod bytes

* Fix compression test

* isort again

* Add special offers for <=3.7 (CATs)

* Add special offers for <=3.7 (NFT1s)

* Add special offers for <=3.7 (NFT0s)

* Add special offers for <=3.7 (DLs)

* Check for conflicting items during aggregation

* isort

* Return created old offers properly marked
2023-02-06 22:04:39 -06:00
Kyle Altendorf
ba74a983eb
pin mypy to < 1 (#14503) 2023-02-06 16:25:40 -06:00
Adam Kelly
9be3c7d00a
Ensure fee estimates monotonically decrease with time (#14368)
* Ensure fee estimates monotonically decrease with time

* Improve function naming and document use

* type checking
2023-02-06 12:53:03 -06:00
Adam Kelly
83c864b2f0
Correct fee estimate calculation to be in mojos, not millimojos (#14474) 2023-02-04 14:09:39 -06:00
Jeff
85faffed29
Includes: moved NFT gallery search bar position to the right disable offer txn row clicking to avoid a crash update app header with latest design fixed broken loading of remote files fix settings page profiles selection fix crash when creating a plotNFT fix wording in offer sharing summary dialog update offerpool sharing to support offer notifications notification icon redesign update wording for the push notification setting reject object attribute values when rendering NFT details fix top bar success, cancel and reload icons fix ModalDialogsContext.Provider that was causing infinite rerenders
Bump chia-blockchain-gui to f030364debadb3cbf788ee47b5e4f0ed10ffc530

Includes:
moved NFT gallery search bar position to the right
disable offer txn row clicking to avoid a crash
update app header with latest design
fixed broken loading of remote files
fix settings page profiles selection
fix crash when creating a plotNFT
fix wording in offer sharing summary dialog
update offerpool sharing to support offer notifications
notification icon redesign
update wording for the push notification setting
reject object attribute values when rendering NFT details
fix top bar success, cancel and reload icons
fix ModalDialogsContext.Provider that was causing infinite rerenders
2023-02-04 13:18:07 -06:00
Matt Hauff
d1a4c579f4
Check incoming notification hints (#14450)
* add self notification test

* add a check that hint belongs to us

* lint
2023-01-31 18:58:46 -06:00
Kyle Altendorf
842b2a59c1
remove bookworm install script testing (#14449)
This should be recovered in `main`.
2023-01-31 17:06:49 -06:00
Jeff
b2cb1da158
Bump chia-blockchain-gui to chia-blockchain-gui (#14424)
Includes:
Changes to support offer notifications
Support for NFT bulk burning
NFT gallery "Select / deselect" cosmetic fixes (#1366)
2023-01-30 15:50:02 -06:00
Kronus91
655eaad639
Rename notification config (#14397)
* Rename notification config

* Change unit test

* Fix test

* Set minimum required notification amount

---------

Co-authored-by: Matt Hauff <quexington@gmail.com>
2023-01-27 17:20:34 -06:00
Matt Hauff
655f6c2292
Add a persitent id table to notification store (#14418)
* Add a persitent id table to notification store

* rename table

* Add a test

* lint
2023-01-27 17:20:01 -06:00
Jeff
6ef40dce40
fix sending of the new_on_chain_notification state change message (#14410) 2023-01-27 09:35:18 -06:00
Matt Hauff
1d4700dceb
Add some extra checks for size and existence to notification backend (#14398)
* Add some extra checks for size and existence to notification backend

* mypy
2023-01-25 23:45:23 -06:00
Jeff
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 Paz
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
Jeff
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 Khaldi
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
wjblanke
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 Altendorf
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 Nelson
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 Khaldi
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 Kelly
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 Walmsley
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 Hauff
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
Kronus91
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
Adam Kelly
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 Hauff
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
github-actions[bot]
902f99e047
CA Cert updates (#14373)
adding ca updates

Co-authored-by: ChiaAutomation <automation@chia.net>
2023-01-20 11:55:46 -06:00
Earle Lowe
71d9e981c3
Make sure to close the DL WalletRpcClient on DL shutdown (#14337)
close walletrpcclient on shutdown
2023-01-19 17:08:12 -06:00
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