Commit Graph
13042 Commits
Author SHA1 Message Date
Arvid Norberg d678131ded [CHIA-1087] validate blocks in thread pool (instead of process pool) (#18681)
* bump chia_rs dependency and accomodate for changes to SpendBundleConditions and run_block_generator()

* use ThreadPoolExecutor instead of ProcessPoolExecutor in pre_validate_blocks_multiprocessing

* don't serialize BlockRecords when passing into pre_validate_blocks_multiprocessing

* dont' pickle the list of full blocks passed into batch_pre_validate_blocks

* don't serialize conditions when passed to batch_pre_validate_blocks

* don't serialize previous session blocks passed to batch_pre_validate_blocks

* don't serialize the return value from batch_pre_validate_blocks

* make the batch size 1, in pre_validate_blocks_multiprocessing(). With the jobs running in a thread pool, there's no serialization cost we need to amortize over a batch

* make batch_pre_validate_blocks() only validate a single block at a time. rename it to pre_validate_block()

* avoid copying recent_blocks into each validation job. since they run in a thread we can just use the blockchain object directly

* merge loops over the blocks in pre_validate_blocks_multiprocessing(), to simplify the code and to build fewer temporary lists
2024-10-15 09:40:47 -07:00
Patrick Maslana fd4a59af19 checkpoint: into main from release/2.4.4 @ 08a9a4d2b7 (#18697)
Source hash: 08a9a4d2b7
Remaining commits: 0
2024-10-15 08:47:35 -07:00
Amine Khaldi 8f8fddaf6b Merge commit '08a9a4d2b7f833730a59c8b970f9bcd16b846bec' into checkpoint/main_from_release_2.4.4_08a9a4d2b7f833730a59c8b970f9bcd16b846bec 2024-10-15 12:04:35 +01:00
Arvid Norberg 837f0e2d47 bump chia_rs dependency (#18695)
bump chia_rs dependency and accomodate for changes to SpendBundleConditions and run_block_generator()
2024-10-11 13:43:31 -07:00
Starttoaster 1481118b84 checkpoint: into main from release/2.4.4 @ b5987621d0 (#18691)
Source hash: b5987621d0
Remaining commits: 1
2024-10-11 12:52:40 -07:00
William Allen 5041c8ce2d Fix install.sh upgrade issue (#18673) 2024-10-11 12:52:20 -07:00
Amine Khaldi 0f45239718 Update the anchor. 2024-10-10 21:57:33 +01:00
Arvid Norberg 5f01fccdc6 [CHIA-598] virtual project structure (#18616)
slightly modified subset of Quexington's virtual project structure. All files default to be treated as belonging to chia-blockchain project. No default annotations. no default exclusions.
2024-10-10 13:56:33 -07:00
Amine Khaldi cf1d28c574 Merge commit 'b5987621d0e06087cbfc73fef40a61e41da39f2f' into checkpoint/main_from_release_2.4.4_b5987621d0e06087cbfc73fef40a61e41da39f2f 2024-10-10 21:55:16 +01:00
Starttoaster 8e4e84690d checkpoint: into main from release/2.4.4 @ 0912c377e7 (#18684)
Source hash: 0912c377e7
Remaining commits: 2
2024-10-10 13:52:54 -07:00
Amine Khaldi 14d0a0215b Merge commit '0912c377e71c6ddc36f50c0d73688d503921452a' into checkpoint/main_from_release_2.4.4_0912c377e71c6ddc36f50c0d73688d503921452a 2024-10-08 22:36:34 +01:00
Starttoaster 74a34af51f checkpoint: into main from release/2.4.4 @ 74536ba781 (#18676)
Source hash: 74536ba781
Remaining commits: 2
2024-10-08 14:18:34 -07:00
Amine Khaldi 221c6e6771 CHIA-1593 Annotate test_cached_bls.py (#18678)
Annotate test_cached_bls.py.
2024-10-08 14:18:02 -07:00
Amine Khaldi 8e39d5e5d7 CHIA-1602 Remove no longer needed TestNetwork class (#18682)
Remove no longer needed TestNetwork class.
2024-10-08 14:17:51 -07:00
Matt Hauff 08a9a4d2b7 [CHIA-1569] Fix fee behavior with chia wallet coins combine (#18679)
* Fix coin fees wrt coin combining

* Add override behavior
2.4.4-rc3
2024-10-08 12:11:14 -07:00
matt-o-howandArvid Norberg 5f6c336e75 [CHIA-621] Add a configurable limit to the amount of DIDs that can be automatically added to the users wallet from transfer (#18655)
* add cap to amount of DID wallets that can be automatically created

* add further testing

* add extra tests for recovering discarded DID and making new DIDs above the limit

* lint fix

* add types to test functions

* add log warning when ignoring DID

* typing fixes for tests

* a few more typing fixes

* black

* Update chia/_tests/wallet/did_wallet/test_did.py

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>

* fix wrong wallet node get_wallet() call

* fix rebase

* remove unused typeignore

---------

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
2024-10-07 11:09:41 -07:00
Arvid Norberg e7241ebfe0 simplify passing around difficulty, sub slot iterators and prev_ses_block (#18660)
* combine current sub slot iterations, current difficulty and previous ses block into ChainState, to make it easier to pass around and update

* address review comments

* address review comments. rename ChainState -> ValidationState. add more comments
2024-10-07 11:09:15 -07:00
Amine Khaldi a810384448 CHIA-1564 Simplify WalletSpendBundle class by leveraging some parent class methods (#18666)
Simplify WalletSpendBundle class by leveraging some parent class methods.
2024-10-07 11:08:44 -07:00
Amine Khaldi 853046de88 Merge commit '74536ba7813bbf91746ca95ab0065c8bbcb1f608' into checkpoint/main_from_release_2.4.4_74536ba7813bbf91746ca95ab0065c8bbcb1f608 2024-10-07 12:23:36 +01:00
Starttoaster 54ad7b4a91 checkpoint: into main from release/2.4.4 @ b353a398fe (#18670)
Source hash: b353a398fe
Remaining commits: 0
2024-10-04 15:34:53 -07:00
Earle Lowe b5987621d0 Update GUI to 7e6f90e (#18671)
Update chia-blockchain-gui to 7e6f90e
2.4.4-rc2
2024-10-04 15:34:26 -07:00
Earle Lowe 0912c377e7 CHIA-1567: Update aiohttp to 3.10.4 (#18663)
Update aiohttp to 3.10.4
2024-10-04 15:34:12 -07:00
Amine Khaldi 2efb374b74 CHIA-1570 Annotate generator_tools_testing.py (#18669)
Annotate generator_tools_testing.py.
2024-10-04 09:00:51 -07:00
wjblanke 74536ba781 CHIA-1568: fix object has no attribute code errors (#18665)
* fix object has no attribute code errors

* fix
2024-10-04 09:00:29 -07:00
Amine Khaldi f3a0240869 Merge commit 'b353a398fef5d04e0da45de8310e322aaddd6cef' into checkpoint/main_from_release_2.4.4_b353a398fef5d04e0da45de8310e322aaddd6cef 2024-10-04 12:21:28 +01:00
Kyle Altendorf b353a398fe stop asking for zero random bits of data (#18668) 2024-10-03 13:32:02 -07:00
Matt HauffandKyle Altendorf 81824c9b34 [CHIA-1308] Port wallet node RPC endpoints to @marshal decorator (#18651)
* Port `set_wallet_resync_on_startup`

* Port `get_sync_status`

* Port `get_height_info`

* Port `push_tx`

* Port `push_transactions`

* Delete `farm_block`

* Port `get_timestamp_for_height`

* Port `get_auto_claim` and set_auto_claim`

* pylint

* fix test

* pylint again

* typo

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

* clearer comment

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

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-10-03 08:28:58 -07:00
Amine Khaldi 40e0df2c25 CHIA-1472 Augment get_mirror_info to accept both types of programs (#18637)
Augment get_mirror_info to accept both types of programs.

This allows us to use serialized programs without the need to convert them into programs.
2024-10-03 08:28:07 -07:00
Amine Khaldi 7c814b1713 CHIA-1554 Annotate test_taproot.py (#18661)
Annotate test_taproot.py.
2024-10-03 08:26:54 -07:00
Geoff Walmsley 4befaf54bc Fix DID balance reporting, and port DID tests to WalletTestFramwork (#18662)
* fix double counting in did balances

* port did_tests to WalletTestFramework

* pylint

* update did tests in test_nft_wallet

* update vc tests
2024-10-03 08:26:33 -07:00
Earle Lowe 0ab72914fa Update GUI pin to 71bae1c072941217cde26a70e864d9add1de07f9 (#18656)
Update GUI pin to
2.4.4-rc1
2024-10-01 11:24:26 -07:00
Amine Khaldi 9109d8926d CHIA-1525 Make PreValidationResult take SpendBundleConditions instead of NPCResult (#18647)
Make PreValidationResult take SpendBundleConditions instead of NPCResult.
2024-10-01 07:25:46 -07:00
Kyle Altendorf b4137651b6 maybe fixup main coverage diff (#18645)
maybe fixup `main` coverage diff
2024-09-30 11:02:21 -07:00
Earle Lowe 7759619b58 [CHIA-1427]: Limit full file creation when processing subscription generations (#18612)
* Some logging and some code to limit full file generation based on the max number of full files allowed

* Don't write out full files that aren't needed

* Black fixes

* Adjust the full file during error conditions

* No need for try
2024-09-30 09:33:08 -07:00
dependabot[bot] cc554eac90 build(deps): bump chiavdf from 1.1.4 to 1.1.6 (#18634)
Bumps [chiavdf](https://github.com/Chia-Network/chiavdf) from 1.1.4 to 1.1.6.
- [Release notes](https://github.com/Chia-Network/chiavdf/releases)
- [Commits](https://github.com/Chia-Network/chiavdf/compare/1.1.4...1.1.6)

---
updated-dependencies:
- dependency-name: chiavdf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 09:32:48 -07:00
Amine Khaldi 33e79e3668 CHIA-1485 Simplify calling pre_validate_spendbundle and avoid spend vs spend bundle confusion (#18639)
Simplify calling pre_validate_spendbundle and avoid spend vs spend bundle confusion.
2024-09-30 09:32:37 -07:00
Amine Khaldi 8552e35e14 CHIA-1491 Annotate test_wallet_interested_store.py (#18644)
Annotate test_wallet_interested_store.py.
2024-09-30 09:32:26 -07:00
Earle Lowe c0c12b90c6 [CHIA-1437]: Reduce level log spam when downloading DAT files (#18610)
* Reduce level log spam when downloading files

* black fix

* Just change info->debug
2024-09-27 10:02:29 -07:00
Kyle Altendorf 3ca9b5ee91 remove no-wallet-found traceback from /dl_owned_singletons (#18632) 2024-09-27 10:00:33 -07:00
Izumi Hoshino b7fbc6b235 Updated GUI pin for 2.4.4 (#18607)
Updated GUI pin
2024-09-26 14:11:58 -07:00
Arvid Norberg 0059b5e052 [CHIA-1087] Simplify batch pre validate blocks (#18602)
* minor simplification of stacked if-conditions and early exits on failure paths

* Simplify NPCResult -> SpendBundleConditions

* make include_spends() take SpendBundleConditions, rather than NPCResult
2024-09-26 12:04:01 -07:00
github-actions[bot]andChiaAutomation 439cd07590 CA Cert updates (#18627)
adding ca updates

Co-authored-by: ChiaAutomation <automation@chia.net>
2024-09-26 08:55:36 -07:00
Arvid Norberg 0764c8da33 Bump chia rs 0.14.0 (#18643)
* bump chia_rs to 0.14.0

* update tests covering negative division (allowed since the hard fork) and infinity G1 keys (disallowed with soft fork 5)

* BLSCache.update() takes GTElement now

* use get_conditions_from_spendbundle() in test_mempool_manager, to get the ANALYZE_SPENDS behavior

* fix mypy warnings
2024-09-26 08:55:26 -07:00
Amine Khaldi 4383b6f930 CHIA-1465 Simplify double spend validation in validate_block_body (#18628)
Simplify double spend validation in validate_block_body.
2024-09-26 06:15:29 -07:00
Earle Lowe 44db523f9d [CHIA-1486] Update to macOS 13 for build and test (#18640)
Update to macOS 13 for build and test
2024-09-25 14:58:30 -07:00
Kyle Altendorf e3aac5ba3e Revert "CHIA-645 Optimize build ancestors table. (#18100)" (#18609)
* Revert "CHIA-645 Optimize build ancestors table. (#18100)"

This reverts commit 9b7bb246cb.

* restore tests
2024-09-25 11:56:54 -07:00
Matt Hauff 0d8d38d01c [CHIA-1306] Tweak TransactionEndpointRequest to require TX args (#18601)
* Tweak `TransactionEndpointRequest` to require TX args

* whoops

* Add an option around the ban
2024-09-25 11:56:34 -07:00
Matt Hauff bffb7b11c3 [CHIA-1307] Port key management RPCs to @marshal decorator (#18593)
* Port `log_in` to decorator

* Port `get_logged_in_fingerprint` to decorator

* Port `get_public_keys` to decorator

* Port `get_private_key` to decorator

* Port `get_mnemonic` to decorator

* Port `add_key` to decorator

* Port `delete_key` to decorator

* Port `check_delete_key` to decorator

* Port `delete_all_keys` to decorator

* Bad copypasta
2024-09-24 15:08:09 -07:00
Amine Khaldi c6630f9aff CHIA-1388 Check the cat list values from get_cat_list against the default cats in test_cat_endpoints (#18587)
Check the cat list values from get_cat_list against the default cats in test_cat_endpoints.
2024-09-24 08:54:53 -07:00
Amine Khaldi a3e6bb497d CHIA-1413 Annotate test_wallet_key_val_store.py (#18603)
Annotate test_wallet_key_val_store.py.
2024-09-24 08:54:43 -07:00