Commit Graph
5861 Commits
Author SHA1 Message Date
Matt HauffandAmine Khaldi d6337c6cad [CHIA-689] Port test_dl_wallet.py to WalletTestFramework (#19200)
* Migrate `test_initial_creation`

* Migrate `test_owned_singletons`

* Migrate `test_tracking_non_owned`

* Migrate `test_lifecycle`

* Delete `test_rebase`

* Port `test_mirrors`

* Minor tweaks.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2025-02-03 09:10:41 -07:00
Amine Khaldi 965bc91be2 CHIA-2276 Annotate time_out_assert.py (#19196)
Annotate time_out_assert.py.
2025-02-03 09:10:28 -07:00
Amine Khaldi 9bac727196 CHIA-2275 Remove no longer needed TestTransactions class (#19195)
Remove TestTransactions class.
2025-02-03 09:09:17 -07:00
Kyle Altendorf b000714e26 Merge commit '084599bf2b51dbc7beef983d88e44724c24b7698' into catchup/long_lived_datalayer_merkle_blob_from_main_084599bf2b51dbc7beef983d88e44724c24b7698 2025-02-03 10:54:45 -05:00
Matt f8bf930edd Fix create_tandem_xch_tx 2025-02-03 07:30:54 -08:00
Kyle Altendorf a8cbd24d81 straight int to TreeIndex 2025-02-03 09:03:48 -05:00
Kyle Altendorf aff076040e fixup 2025-01-31 10:18:16 -05:00
Kyle Altendorf 63d35aa560 Change delta format (#19175)
Change the delta file format to diff only against the previous
generation, as opposed to all existing generations. This maintains
backwards compatibility for now, but adds to the DB only the minimum
amount of hashes so we can sync. Once all clients update to this new
delta format, it will no longer be needed to store all the hashes into
the DB.
2025-01-31 09:46:05 -05:00
Kyle Altendorf adf6e0d181 use chia_rs provided KeyId, ValueId, TreeIndex 2025-01-30 14:23:17 -05:00
Florin Chirica 5547cee6c8 around* 2025-01-30 20:00:11 +02:00
Florin Chirica d07eefce8e Add comments. 2025-01-30 19:59:18 +02:00
Matt f828529140 Some test fixes 2025-01-30 09:56:39 -08:00
Florin Chirica 942ad22122 Try to fix mypy 2025-01-30 00:40:07 +02:00
Florin Chirica 2b08935aaf Address review comments. 2025-01-29 23:50:30 +02:00
Florin ChiricaandKyle Altendorf aac1b34ba6 Apply suggestions from code review
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2025-01-29 23:21:29 +02:00
Matt 7c4b4277a4 Standardize the Wallet API for generate_signed_transaction 2025-01-29 12:42:26 -08:00
Kyle Altendorf 3d562adf08 delete chia/simulator/simulator_constants.py (#19037)
Delete chia/simulator/simulator_constants.py

the keychain seems unneeded, it might be wrong given the 'new consensus' comment, and it prints a python literal not a hex string or somesuch.  and it uses the `DEFAULT_ROOT_PATH` global i'm trying to get rid of.  oh, plus it's a directly runnable file that ought to be available via some `chia` subcommand instead, if it sticks around.
2025-01-29 11:55:21 -07:00
Richard Kiss 3410597728 Move check_fork_next_block.py to chia.full_node (#19193)
Move `check_fork_next_block`
2025-01-28 13:46:02 -07:00
Amine KhaldiandKyle Altendorf 9343b143b0 check resolution of example.net more loosely (#19155) (#19173)
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2025-01-28 08:39:46 -07:00
Matt Hauff 2d53b46a4b [CHIA-2264] Add config constant support to chia db validate (#19182)
Add config constant support to `chia db validate`
2025-01-28 08:39:27 -07:00
Kyle Altendorf 7e76691d32 Merge branch 'long_lived/datalayer_merkle_blob' into merkle_types 2025-01-28 10:29:38 -05:00
Amine Khaldi 37df97e873 CHIA-2219 Fix a plot ID calculation typo in test_unfinished_block_with_replaced_generator (#19139)
Fix a plot ID calculation typo in test_unfinished_block_with_replaced_generator.
2025-01-28 06:22:19 -07:00
Almog De Paz 26b0fbee8e move augmented to caller (#19161)
* move augmented to caller

* use undelying height_to_hash to check main chain
2025-01-27 13:12:10 -07:00
Florin Chirica 6226a8b0b9 Improve coverage. 2025-01-27 19:20:05 +02:00
Matt Hauff 7c01b87693 [CHIA-2224] Add some extra safety into create_message_spend (#19153)
* Add some extra safety into `create_message_spend`

* Fix a poorly named variable
2025-01-27 09:00:04 -07:00
Matt Hauff 0c9509f9fc Remove old offer guards (#19167) 2025-01-27 08:24:32 -07:00
Matt Hauff 223d42f7ef [CHIA-1219] Allow coin selection of 0 value coins (#19162)
Allow coin selection of 0 value coins
2025-01-27 08:24:20 -07:00
Matt Hauff c99492cc19 [CHIA-773] Swap out Payment for CreateCoin (#19144)
* Swap out `Payment` for `CreateCoin`

* Fix mypy-exclusions

* tweak
2025-01-27 08:22:29 -07:00
Amine Khaldi 9aefa012ac CHIA-2221 Remove no longer needed has_peers_with_peak (#19142)
Remove no longer needed has_peers_with_peak.
2025-01-27 08:20:28 -07:00
Amine Khaldi eddc602580 CHIA-2220 Fix a typo when picking the best unfinished block in test_request_unfinished_block2 (#19141)
Fix a typo when picking the best unfinished block in test_request_unfinished_block2.
2025-01-27 08:20:09 -07:00
Matt Hauff 5e0d6a4463 [CHIA-2192] Add singleton records to action scopes (#19138)
* Add singleton_records to action scopes

* Extract SingletonRecord to its own file

* Fix test_lifecycle

* Fix wallet action scope test mock
2025-01-27 08:19:54 -07:00
Amine Khaldi a6cad887b1 CHIA-2218 Remove no longer needed get_block_path (#19137)
Remove no longer needed get_block_path.
2025-01-27 08:19:12 -07:00
Kyle Altendorf f27797eca1 set wallet.rpc test job timeout to 35 minutes (#19122)
seeing 25% hang rate and top successful time of 22 minutes so let's fail a bit quicker on the hangs.

https://github.com/Chia-Network/chia-blockchain/actions/runs/12712771698/usage
2025-01-27 08:18:57 -07:00
Kyle Altendorf 0a682779e3 Merge branch 'long_lived/datalayer_merkle_blob' into streamable_for_merkle_blob_serialization 2025-01-27 10:02:50 -05:00
Kyle Altendorf db7a6585f4 touchup 2025-01-27 09:55:18 -05:00
Kyle Altendorf 137bd80a73 separate KvID to KeyId and ValueId (#19180)
<!-- 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-01-24 22:49:50 -05:00
Kyle Altendorf bb408a8851 make ProofOfInclusion.root_hash a method, from a property (#19177)
<!-- 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-01-24 13:46:26 -05:00
Kyle Altendorf cfd08e21ca Merge branch 'long_lived/datalayer_merkle_blob' into separate_key_and_value_id_types 2025-01-24 13:44:12 -05:00
Kyle Altendorf c40b977e41 focus 2025-01-24 13:42:42 -05:00
Kyle Altendorf ca8ce105e9 more 2025-01-24 10:54:47 -05:00
Kyle Altendorf e403fb0378 separate KvID to KeyId and ValueId 2025-01-24 10:43:50 -05:00
Kyle Altendorf 70f70bdf40 create MerkleTypes testing compatibility interface 2025-01-24 10:09:00 -05:00
Kyle Altendorf 96fd8ecf7c more 2025-01-24 10:01:07 -05:00
Kyle Altendorf 7ba3a99ce0 narrow to bytes32 hinting in DataStore.insert_batch() 2025-01-24 09:54:06 -05:00
Kyle Altendorf 4d5f168ef5 make ProofOfInclusion.root_hash a method, from a property 2025-01-24 09:50:18 -05:00
Kyle Altendorf b95f216e78 stuff 2025-01-23 12:21:04 -05:00
Florin Chirica 083ca7e3a3 Lint. 2025-01-23 19:18:49 +02:00
Florin Chirica 4cf02a8738 Add test. 2025-01-23 19:07:55 +02:00
Florin Chirica 2fdb0a36a8 Ruff. 2025-01-23 14:31:25 +02:00
Florin Chirica 913769e37c Relax delta files format. 2025-01-23 14:08:55 +02:00