Commit Graph
5861 Commits
Author SHA1 Message Date
Amine Khaldi 0f737e4f93 Merge commit '5200310a2494d11f2df774c9ceb1c12e87d9b8d5' into checkpoint/main_from_release_2.5.5_5200310a2494d11f2df774c9ceb1c12e87d9b8d5 2025-08-08 19:16:58 +01:00
Amine Khaldi 6821c48d88 CHIA-3595 Be explicit about falling back to coin_puzzle_hash index in get_unspent_lineage_info_for_puzzle_hash (#19909)
Be explicit about falling back to coin_puzzle_hash index in get_unspent_lineage_info_for_puzzle_hash.
2025-08-07 10:49:01 -07:00
Matt HauffandAmine Khaldi b6db8529e8 [CHIA-3391] Port test_nft*offers.py to be parametrized with R-CATs (#19842)
* Port `test_nft_offer_nft_for_cat`

* Port `test_nft_offer_nft0_and_xch_for_cat`

* Forgot to delete an unnecessary state process

* Port `test_nft_offer_sell_nft_for_cat`

* Port `test_nft_offer_request_nft_for_cat`

* Port `test_complex_nft_offer`

* Fix a new issue in complex test

* Minor change.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2025-08-07 10:47:53 -07:00
Starttoaster 43fb664831 checkpoint: into main from release/2.5.5 @ d2e9df3b51 (#19877)
Source hash: d2e9df3b51
Remaining commits: 2
2025-08-07 10:47:08 -07:00
Richard Kiss 4e6038ba3b Simplify dependencies wrt chia.server (#19895)
Remove some dependencies in `chia.server`.
2025-08-06 12:03:47 -07:00
Matt Hauff 42da90e105 [CHIA-3294] Port get_wallet_balance(s) to @marshal (#19774)
* Port `get_wallet_balance(s)`

* Use Streamable dict functionality
2025-08-05 13:11:24 -07:00
Matt Hauff ec21ca9f75 [CHIA-3390] Port remaining test_trades.py tests to parametrized with R-CATs (#19831)
* Port `test_trade_cancellation`

* Port `test_trade_conflict`

* Port `test_trade_bad_spend`

* Port `test_trade_high_fee`

* Port `test_aggregated_trade_state`
2025-08-05 13:11:10 -07:00
Matt Hauff e8e060b533 [CHIA-3419] Remove TransactionRecord.*_json_dict_convenience (#19860)
* Change `TransactionRecord` to use dict instead of list of tuples for memos

* Update streamable and fix tests

* Update test to accidentally fixed memos generation

* Remove `TransactionRecord.*_json_dict_convenience`

* Fix test

* Use AddressType library in WSM method

* Use AddressType library in transaction_store method
2025-08-05 13:10:52 -07:00
Arvid NorbergandKyle Altendorf 04eef678e9 Bump chia rs 0.28 (#19891)
* bump chia_rs to 0.29

* correct return value from get_spends_for_trusted_block()

* remove unnecessary casts

* adjust test for the new error messages in chia_rs

* Update chia/full_node/full_node_rpc_api.py

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

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2025-08-05 11:20:27 -07:00
dependabot[bot]andKyle Altendorf 4857c6f5a8 build(deps): bump mypy from 1.15.0 to 1.17.0 (#19821)
* build(deps): bump mypy from 1.15.0 to 1.17.0

---
updated-dependencies:
- dependency-name: mypy
  dependency-version: 1.17.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* handle mypy commentary

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2025-08-01 09:17:06 -07:00
William Allen 148b8137b6 Include plotNFT rewards in get_farmed_amount (#19245)
* Include plotNFT rewards in get_farmed_amount

* Add flag to include pool rewards in farm summary

* Add -i for short flag

* Fix expected args

* Include additional farming detail

* Include additional farming detail

* Format/organize output

* Move block rewards

* Update test

* Format

* Update test_farm_cmd.py

* revert test bool

* Passing tests

* Added test for 'include_pool_rewards=True'

* Address linting errors
2025-08-01 09:16:12 -07:00
Kyle Altendorf 70c3bdbe87 Merge commit 'cac84b5e057a074da6a72e2a8bbcc70ec0a09668' into catchup/long_lived_datalayer_merkle_blob_from_main_cac84b5e057a074da6a72e2a8bbcc70ec0a09668 2025-08-01 11:59:07 -04:00
Arvid Norberg b1cc0a5b84 fast-forward spends can be treated as regular spends (#19889)
fast-forward spends can be treated as regular spends if the coin doesn't appear to support the rebasing
2025-08-01 08:56:31 -07:00
Richard KissandArvid Norberg cac84b5e05 Simplify BlockStore (#19880)
* Simplify `BlockStore`

* Update chia/full_node/block_store.py

Co-authored-by: Arvid Norberg <arvid.norberg@gmail.com>

---------

Co-authored-by: Arvid Norberg <arvid.norberg@gmail.com>
2025-07-31 20:35:54 -05:00
Arvid NorbergandAmine Khaldi 33a02129b3 use per-puzzle cost to estimate DEDUP savings (#19811)
* use per-puzzle cost to estimate DEDUP savings, rather than rerunning puzzles

* restore SpendBundleAddInfo to have an optional cost. remove unused max_cost parameter from get_deduplication_info()

* restore call to make_test_conds() taking cost as int

* update test_dedup_by_fee() and fix big in make_bundle_spends_map_and_fee()

* review comments

* review comments

* Addendum to use per-puzzle cost to estimate DEDUP savings (#19816)

Addendum to use per-puzzle cost to estimate DEDUP savings.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2025-07-31 11:36:07 -07:00
Amine Khaldi 549c9e892c Merge commit 'd2e9df3b510fdf8f9312af58096378902baddc67' into checkpoint/main_from_release_2.5.5_d2e9df3b510fdf8f9312af58096378902baddc67 2025-07-30 19:32:50 +01:00
Almog De Paz 19a8329cbe Plotmanager v2 (#19832)
* prover protocol and v2Prover

* format name

* format

* refactor filename

* tests/raise unimplemented

* add get_filename_str to mock

* rename methods

* rename

* refactor

* improve coverage

* test from bytes
2025-07-30 11:05:52 -07:00
Richard Kiss a8d7d32d53 Remove mozilla ca submodule and subsume this functionality (#19850)
<!-- 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-07-30 11:05:13 -07:00
Amine Khaldi 5200310a24 CHIA-3484 Handle items that spend an older ff version when newer lineage exists (#19865)
Handle items that spend an older ff version when newer lineage exists.
2025-07-25 09:57:09 -07:00
Florin ChiricaandKyle Altendorf 35c03a5d17 Cleanup keys/values db. (#19829)
* Cleanup keys/values db.

* Fix bug.

* Add test.

* Lint.

* Add test.

* Lint.

* Move unconfirmed blobs in memory.

* Lint.

* Apply suggestions from code review

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

* Add field.

* functools too.

* Lint.

* Switch to context manager.

* Iterator.

* Ruff.

* Use context manager everywhere.

* Add test.

* Add test.

* Match exception.

* Apply suggestions from code review

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

* Address review comments.

* Use context maanger.

* Revert.

* Revert further.

* Revert.

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2025-07-24 21:31:27 -04:00
Matt HauffandAmine Khaldi 0a808513a0 [CHIA-3389] Port test_offer_endpoints in to WalletTestFramework and parametrize for R-CATs (#19830)
* Port `test_offer_endpoints` to `WalletTestFramework`

* Use minting method from cat wallet tests

* Test R-CATs as well

* A couple imports.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2025-07-24 10:09:33 -07:00
Kyle Altendorf 7a26610e8f less pre-inting for ints (#19853) 2025-07-23 13:18:04 -07:00
Matt Hauff 55165b1163 [CHIA-3418] Change TransactionRecord to use dict instead of list of tuples for memos (#19846)
* Change `TransactionRecord` to use dict instead of list of tuples for memos

* Update streamable and fix tests

* Update test to accidentally fixed memos generation
2025-07-23 13:17:41 -07:00
Amine Khaldi d2e9df3b51 CHIA-3286 Fix rebasing fast forward spends on new peak (#19857)
Fix rebasing fast forward spends on new peak.
2025-07-23 09:40:40 -07:00
Amine Khaldi 0a7a3c7b3c Merge commit '96d1356b6579c0a4dd78273928b55dfa1e10725d' into checkpoint/main_from_release_2.5.5_96d1356b6579c0a4dd78273928b55dfa1e10725d 2025-07-22 17:55:04 +01:00
Jack Nelson a10df3b619 CHIA-3396 Remove Exception Catching from node RPC (#19825)
* remove extra exception catching

* clean up node errors + tests

* forgot to pre-commit

* address using pytest wrong

* clean up error handling

* seperate out pytest tests
2025-07-21 09:16:00 -07:00
Arvid Norberg 4576684c14 integrate PLOT_V1_PHASE_OUT constant (#19820)
* integrate PLOT_V1_PHASE_OUT constant

* current test chains won't work after the plot v1 phase-out
2025-07-21 08:59:16 -07:00
Kyle Altendorf 8bba60158d use now allowed randbytes and other helpers (#19838) 2025-07-21 08:55:55 -07:00
Richard Kiss ddc5a73d2d Update to ruff 0.12.4 (#19852)
Upgrade `ruff` to 0.12.4.
2025-07-21 08:52:39 -07:00
Matt Hauff 191ccde774 [CHIA-3251] Delete DID recovery endpoints (#19767)
* Port `did_set_wallet_name`

* Port `did_get_wallet_name`

* Port `did_update_recovery_ids`

* Port `did_message_spend`

* Port `did_get_info`

* Port `did_find_lost_did`

* fix test

* Port `did_update_metadata`

* Port `did_get_did`

* Port `did_get_recovery_list`

* Port `did_get_metadata`

* Port `did_get_pubkey`

* Port `did_get_information_needed_for_recovery`

* Port `did_get_current_coin_info`

* Port `did_create_backup_file`

* Port `did_transfer_did`

* Add extra_conditions uniformly in CLI tests

* test coverage

* Delete DID recovery endpoints

* Delete `create_exit_spend` as well

* Missed one
2025-07-18 09:11:15 -07:00
Kyle Altendorf a320d4afbb tidy (#19833)
* tidy

* Update test_data_rpc.py
2025-07-17 13:59:12 -04:00
Kyle Altendorf 322aba790d unskip and fix to order agnostic check (#19836) 2025-07-17 09:30:10 -04:00
Kyle Altendorf d352be14f3 use logical core count for batch size when lazy building dl cache (#19834) 2025-07-16 15:50:54 -04:00
Matt Hauff 018c3fe46e [CHIA-3293] Port get_wallets to @marshal decorator (#19770)
* Port `get_wallets`

* Suggestion by @altendky
2025-07-16 09:07:56 -07:00
Matt HauffandAmine Khaldi 96d1356b65 [CHIA-3388] Port test_cat_endpoints in test_wallet_rpc.py to WalletTestFramework and R-CATs (#19818)
* Port `test_cat_endpoints` to `WalletTestFramework`

* Use mint_cat from cat tests

* Add RCAT parametrization

* Delete now unnecessary `from_zero`

* Minor clarification.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2025-07-15 15:43:10 -07:00
Florin Chirica ee589a6199 DL Check root hash in missing hashes. (#19797)
* DL Check root hash in missing hashes.

* Poetry.

* Send root hash param.

* Switch branch.

* Use correct branch name.
2025-07-15 14:09:58 -04:00
matt-o-how 9f8ba79ac8 Use chia_rs in API instead of clvm (#19803)
* initial commit

* fix precommit errors

* test passing

* ruff

* remove SpendInfo and mempool_check_conditions

* no need to call it _rust now

* fix mempool test

* fix precommit errors

* fix test generator tools

* add comment about impending chia_rs fix
2025-07-15 08:34:45 -07:00
Florin Chirica 7d077cdc46 DL Code Cleanup (#19782)
* DL code cleanup

* Lint.
2025-07-14 22:25:57 -04:00
Kyle Altendorf ab9e729513 fewer mutable defaults (#19800)
* fewer mutable defaults

* catchup
2025-07-14 14:42:22 -07:00
Richard Kiss 7cee2b2b61 ruff issues (#19787) 2025-07-14 08:52:42 -05:00
Arvid Norberg 46bc14b178 [CHIA-2827] simplify MempoolManager by removing EligibilityAndAdditions (#19801)
* simplify MempoolManager by removing EligibilityAndAdditions

* review comment

* review comments
2025-07-14 08:52:08 -05:00
Kyle Altendorf fb8de7a1b3 Merge commit 'dac837e79961fa5ce9611d5531d789211031c465' into catchup/long_lived_datalayer_merkle_blob_from_main_dac837e79961fa5ce9611d5531d789211031c465 2025-07-11 22:35:57 -04:00
Richard Kiss d01758f9c8 BlockHeightMapProtocol (#19798) 2025-07-11 19:38:14 -05:00
Arvid Norberg dac837e799 bump chia_rs (#19802) 2025-07-10 16:12:29 -05:00
Matt Hauffandarvidn b9710b19a9 Add RCATs to wallet (#19795)
* Add RCATs to wallet

* undo outer puzzle changes and fix tests

* logging

* update testnet overrides in wallet

* some empirical debugging

* comments by @altendky

* fix an accident

* a bit better

* comment by @altendky

* Add RCAT to all relevant enumerations

* reorder

---------

Co-authored-by: arvidn <arvid@libtorrent.org>
2025-07-10 15:35:07 -05:00
Amine Khaldi c609d0bba1 CHIA-2900 Fast forward mempool optimization (#19713)
Fast forward mempool optimization.
2025-07-09 20:49:45 -05:00
Arvid Norberg 37d0a3c724 update testnet overrides in wallet (#19796) 2025-07-09 20:49:10 -05:00
Matt Hauff 3eb47070a3 Replace CATWallet.create_new_cat_wallet in test_cat_wallet.py (#19788)
* Replace `CATWallet.create_new_cat_wallet` in `test_cat_wallet.py`

* pre-commit

* change CRCATWallet as well
2025-07-08 11:59:41 -05:00
Matt HauffandAmine Khaldi 13d9d62e41 [CHIA-1311] Port DID RPCs to @marshal decorator (#19708)
* Port `did_set_wallet_name`

* Port `did_get_wallet_name`

* Port `did_update_recovery_ids`

* Port `did_message_spend`

* Port `did_get_info`

* Port `did_find_lost_did`

* fix test

* Port `did_update_metadata`

* Port `did_get_did`

* Port `did_get_recovery_list`

* Port `did_get_metadata`

* Port `did_get_pubkey`

* Port `did_get_information_needed_for_recovery`

* Port `did_get_current_coin_info`

* Port `did_create_backup_file`

* Port `did_transfer_did`

* Add extra_conditions uniformly in CLI tests

* test coverage

* Minor changes.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2025-07-08 11:57:58 -05:00
Arvid Norbergandmatt-o-how 387d8073a4 [CHIA-2639] drop spends we can't serialize rather than the whole request (#19773)
* drop spends we can't serialize rather than the whole request, in get_spends_for_block() et. al.

* Update chia/_tests/core/full_node/test_generator_tools.py

Co-authored-by: matt-o-how <48453825+matt-o-how@users.noreply.github.com>

---------

Co-authored-by: matt-o-how <48453825+matt-o-how@users.noreply.github.com>
2025-07-07 09:14:44 -07:00