Commit Graph
5861 Commits
Author SHA1 Message Date
Amine Khaldi fbfd7ca743 CHIA-2675 Simplify transaction skipping eligibility check in create_bundle_from_mempool_items (#19473)
Simplify transaction skipping eligibility check in create_bundle_from_mempool_items.
2025-04-08 06:46:35 -07:00
Amine Khaldi 889f4af357 CHIA-2646 Fix create_block_generator2 to perform identical spend deduplication using the mempool item's potentially fast forwarded coin spends data (#19450)
Perform identical spend deduplication using the mempool item's potentially fast forwarded coin spends data.
2025-04-08 06:46:27 -07:00
Florin Chirica 08496cb453 DL Config cache size. 2025-04-07 23:52:20 +03:00
Arvid Norberg 108c98cbd0 stop testing soft fork 6. it has already activated (#19472)
stop testing soft fork 6. it has already activated. enable it for all tests
2025-04-07 13:17:23 -07:00
Arvid Norberg 07b50763ca remove unused function on AddressManager (#19471) 2025-04-07 13:17:14 -07:00
Kyle Altendorf 46aa20a1ce use chia_rs directly for spend bundle conditions (#19470) 2025-04-07 10:25:05 -07:00
Kyle Altendorf db8fe40934 Merge commit '07ccc77676ad2f3b7dcd19e8a6fd269dea235bba' into catchup/long_lived_datalayer_merkle_blob_from_main_07ccc77676ad2f3b7dcd19e8a6fd269dea235bba 2025-04-07 11:16:32 -04:00
matt-o-howandKyle Altendorf 07ccc77676 Add ContextManager to FullNodePeers (#19427)
* convert AddressManager to dataclass

* type annotations for default factory code

* convert FullNodePeers and FullNodeDiscovery into dataclasses

* make WalletPeers also a dataclass

* typing fixes

* fix type parameters for generic type "Queue"

* context manage FullNodePeers

* Update chia/full_node/full_node.py

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

* remove init=false

* add coverage for node_discovery

* refactor full_node_peers entering context

* clear() uses same code as init() for matrices

* Update chia/server/address_manager.py

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

* Add functools import to address_manager.py

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2025-04-04 11:34:59 -05:00
Kyle Altendorf bdcac366df use chia_rs directly for slots (#19468) 2025-04-04 07:35:06 -05:00
Matt Hauff 85a44bb4ab [CHIA-2636] Remove direct secret key access from pool wallet (#19446)
* Remove direct secret key access from pool wallet

* Remove now unusued cache

* Some hardcoded test fixes

* More test fixes

* Add comment
2025-04-03 15:34:14 -05:00
Matt Hauff a6a5a35c7d [CHIA-1251] Add puzzle hash generation to action scopes (#19283)
* (squash) Add puzzle hash generation to action scopes

* Add comment for unused/last_index
2025-04-03 15:34:07 -05:00
Amine Khaldi 5d19675405 CHIA-2645 Remove no longer needed TestNodeLoad class (#19448)
Remove no longer needed TestNodeLoad class.
2025-04-03 09:34:13 -05:00
Amine Khaldi a3c50ddc2e CHIA-2644 Annotate test_full_sync.py (#19447)
Annotate test_full_sync.py.
2025-04-02 12:17:47 -05:00
Kyle Altendorf e9df93197c correct proxy url hinting for datalayer downloads (#19461) 2025-04-02 09:38:24 -05:00
Arvid Norberg 7aa76bc116 [CHIA-2540] Compute block cost (#19397)
* predict exact block cost, instead of re-running the generator

* fixup workflow for test-bundles

* fixup

* review comments
2025-04-02 09:37:45 -05:00
Kyle Altendorf 27d43831a9 add CHIA_DATA_LAYER_STOP_AFTER_GENERATION env var for timing tests (#19417) (#19436)
(cherry picked from commit 0c40219a57)
2025-03-31 09:19:25 -05:00
Arvid Norberg cf17f20ccf [CHIA-2052] Compressed blocks (#19270)
* introduce create_block_generator2() to mempool, which picks transactions and compresses them incrementally, allowing us to fill blocks even when compressing

* improve test, comment and pragma no cover

* fix mempool test

* simplify item selection logic in create_block_generator2()

* add test coverage of timeout in create_block_generator2()

* address review comments

* fixup
2025-03-27 12:42:46 -05:00
Amine Khaldi 5121204c59 CHIA-2596 Simplify latest_singleton_coin checking in invariant_check_mempool (#19435)
Simplify latest_singleton_coin checking in invariant_check_mempool.
2025-03-26 13:11:29 -07:00
Amine Khaldi 33567e3ffd CHIA-2577 Remove no longer needed TestFullSync class (#19412)
Remove no longer needed TestFullSync class.
2025-03-26 13:10:59 -07:00
Amine Khaldi bcead290c4 CHIA-2545 Annotate test_wallet_rpc.py (#19375)
Annotate test_wallet_rpc.py.
2025-03-26 13:08:38 -07:00
Matt Hauff ad46ee2301 [CHIA-2546] Refactor and add test for WSM puzzle hash endpoints (#19385)
refactor puzzle hash requests
2025-03-26 13:08:00 -07:00
Kyle Altendorf ed20dd60ed Merge commit '99448387ada5dd492d06261ab823c59c2a55b231' into catchup/long_lived_datalayer_merkle_blob_from_main_99448387ada5dd492d06261ab823c59c2a55b231 2025-03-24 17:44:35 -04:00
Kyle Altendorf 99448387ad add the keys root path to ChiaCliContext (#19420)
* add the keys root path to `ChiaCliContext`

* tidy
2025-03-24 14:41:06 -07:00
Amine Khaldi b900985ddf CHIA-2580 Significantly speedup mempool manager tests by not forcing them to request unneeded fixtures (#19414)
Don't force all mempool manager tests to request test_wallet and transactions_1000 fixtures.
2025-03-24 14:40:45 -07:00
Kyle Altendorf e647f5ea82 avoid unneeded conversion to bytearray (#19422) 2025-03-23 15:48:35 -04:00
Kyle Altendorf e8ed86d0fd datalayer compress for db (#19421)
compress the merkle blobs in the db
2025-03-22 11:41:51 -04:00
Kyle Altendorf 26fcbe70e6 subdirectory for chia dev commands (#19418)
* move `chia dev` to its own subdirectory

* rename `dev.py` to `main.py`

* fixup

* more
2025-03-21 14:31:13 -07:00
Kyle Altendorf bbb65220f1 simplify chia command key root path handling (#19419) 2025-03-21 14:30:10 -07:00
Kyle Altendorf 43f053927a pass around some connections (#19415) 2025-03-21 14:51:27 -04:00
Kyle Altendorf 0c40219a57 add CHIA_DATA_LAYER_STOP_AFTER_GENERATION env var for timing tests (#19417) 2025-03-21 14:38:04 -04:00
Kyle Altendorf f19db97dc5 log exceptions while inserting from delta file (#19416) 2025-03-21 14:37:46 -04:00
Almog De Paz 05e9706c13 Check full node state in tl tests (#19392)
* fix tl node peak sync

* revert pytest change

* add weight check, rearrange cases

* comments, logs

* logs

* fix condition

* add full node validations to tl test

* add block
2025-03-20 10:39:22 -07:00
Amine Khaldi e91335eff4 CHIA-2570 Adapt to requiring the same amount across singleton fast forward versions (#19398)
Adapt to requiring the same amount across singleton fast forward versions.
2025-03-19 19:30:45 -07:00
Kyle Altendorf a2880ea87b correct sql limit to match batch length (#19407)
<!-- Merging Requirements:
- Please give your PR a title that is release-note friendly
- In order to be merged, you must add the most appropriate category
Label (Added, Changed, Fixed) to your PR
-->
<!-- Explain why this is an improvement (Does this add missing
functionality, improve performance, or reduce complexity?) -->

### Purpose:

<!-- Does this PR introduce a breaking change? -->

### Current Behavior:

### New Behavior:

<!-- As we aim for complete code coverage, please include details
regarding unit, and regression tests -->

### Testing Notes:

<!-- Attach any visual examples, or supporting evidence (attach any
.gif/video/console output below) -->
2025-03-19 21:17:04 -04:00
Kyle Altendorf b59607daa0 less unneeded bytes32ing (#19410)
* less unneeded `bytes32`ing

* a bit more
2025-03-19 19:41:07 -04:00
Kyle Altendorf 9b545932d9 combine adding node hashes into single .executemany() call (#19408)
* combine adding node hashes into single `.executemany()` call

* format

* refactor correction
2025-03-19 16:34:47 -04:00
Kyle Altendorf 8a8636b28b catchup: into long_lived/datalayer_merkle_blob from main @ 885107b787 (#19411)
Source hash: 885107b787
Remaining commits: 0
2025-03-19 16:29:18 -04:00
Arvid Norberg 9147629b78 NewBlockGenerator as an extension of BlockGenerator (#19390) 2025-03-19 11:37:16 -07:00
Kyle Altendorf 5582261d45 breakdown DataStore.insert_into_data_store_from_file() (#19409) 2025-03-19 14:27:49 -04:00
Kyle Altendorf 4ab8cee0e7 Merge commit '885107b78761b38beef94427eca51d062c289645' into catchup/long_lived_datalayer_merkle_blob_from_main_885107b78761b38beef94427eca51d062c289645 2025-03-19 14:24:48 -04:00
RigidityandArvid Norberg a194dd60e9 CHIA-2378: Add CLI commands to import, export, and benchmark the mempool (#19271)
* Add CLI commands to import and export the mempool, and benchmark block creation

* Unused import

* Remove old RPC

* Fix mypy

* Address some comments

* use create_block_generator()

* Ruff

* Address comments

---------

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
2025-03-18 17:09:02 -07:00
Arvid Norberg 894c68fb5c validate cached blockchains (#18527)
* when loading the cached test blockchains, check that the first few blocks match what we would have generated if it wasn't cached. This should make CI highlight whenever BlockTools changes some way of how chains are generated that alters the chain output. When this happens, we should also update the test-cache repo

* update test-cache version to use for CI

* exempt debug message from test coverage
2025-03-18 09:54:28 -07:00
Amine Khaldi f73564325c CHIA-2367 Separate height to hash and sub epoch summaries files by networks (#19262)
Separate height to hash and sub epoch summaries files by networks.
2025-03-17 09:53:02 -07:00
Almog De Paz 4dc7893bee fix tl node peak sync (#19389)
* fix tl node peak sync

* revert pytest change

* add weight check, rearrange cases

* comments, logs

* logs

* fix condition
2025-03-17 09:50:28 -07:00
Florin Chirica 8a9bfafeb9 Add DL migration test. (#19384)
* Add a migration test.

* Revert gitignore.

* Lint.

* Use Kyle's version.

* Remove shutil.
2025-03-14 16:07:48 -04:00
Amine Khaldi eeec2c348d Merge commit '4ae44855b12922df6bf9524e4c2bd431f9dcf54c' into checkpoint/main_from_release_2.5.3_4ae44855b12922df6bf9524e4c2bd431f9dcf54c 2025-03-14 10:52:12 +01:00
Amine Khaldi 46d915d140 CHIA-2375 Remove no longer needed TestDIDWallet class (#19267)
Remove no longer needed TestDIDWallet class.
2025-03-13 11:52:07 -07:00
Amine Khaldi 8b2b830da6 CHIA-2538 Remove no longer needed item_inclusion_filter in the mempool (#19367)
Remove no longer needed item_inclusion_filter in the mempool.
2025-03-13 11:51:23 -07:00
Kyle Altendorf 338a295c80 use .writer_maybe_transaction() in DataStore.add_kvid() (#19382) 2025-03-12 21:37:54 -04:00
Florin ChiricaandKyle Altendorf 1be3c08f49 Add benchmark test. (#19379)
* Add benchmark test.

* Lint.

* Update chia/_tests/core/data_layer/test_data_store.py

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

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2025-03-12 16:24:29 -04:00