Commit Graph
865 Commits
Author SHA1 Message Date
Matt Hauff 8eba5d8490 [CHIA-3686] Port send_transaction_multi to @marshal (#20071)
* Port `send_transaction_multi` to `@marshal`

* test coverage
2025-12-04 09:43:05 -08:00
Matt Hauff b50d58fc42 Fix flaky test (#20306) 2025-12-04 09:38:41 -08:00
Amine Khaldi 1e0bc4d153 CHIA-3844 Advertise requested mempool transactions instead of sending them (#20314)
Advertise requested mempool transactions instead of sending them.
2025-12-04 09:38:16 -08:00
Arvid Norberg 426590feaf bump chia_rs and update uses of RewardChainBlock and SubEpochSummary (#20304) 2025-12-03 10:27:55 -08:00
Amine Khaldi 70514c0844 CHIA-3843 Wait for nodes to sync in test_ban_for_mismatched_tx_cost_fee (#20312)
Wait for nodes to sync in test_ban_for_mismatched_tx_cost_fee.
2025-12-03 09:59:52 -08:00
Matt Hauff b6e8a9e3bc [LABS-303] Simplify spend_clawback_coins (#20300)
* Simplify `spend_clawback_coins`

* specific exception

* Okay not so fancy

* Couple of tests
2025-12-02 10:14:38 -08:00
Matt Hauff f0a141f688 [CHIA-3687] Port create_signed_transaction to @marshal (#20067)
* Port `create_signed_transaction` to `@marshal`

* Hack in the old interface for `send_transaction_multi`

* Bad rebase
2025-12-01 18:01:45 -08:00
8315f62ae6 Import check_time_locks() and CoinRecord (#19848)
* initial commit

* fix int to bool map

* another int bool map

* cast error to Err class

* cast to Err in a couple other places

* remaining couple

* ruff

* inline coinstore bool

* typing fixes

* import directly from rust and remove legacy file

* fix lingering ref to coinrecord

* another outdated import

* ruff

* typping fix

* minor simplifications

* Fix test

* fix import merge

* address comments

* undo coin_store change

---------

Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
Co-authored-by: Matt <quexington@gmail.com>
2025-11-26 12:48:42 -08:00
Arvid Norberg b8c0e7712a fix plot filter for v2 plots (#20293) 2025-11-25 11:59:13 -08:00
Matt Hauff cdd19fb35c [LABS-301] Extract split_coins and combine_coins RPCs to WalletStateManager (#20290)
* Extract `split_coins` to `WalletStateManager`

* Extract `combine_coins`

* < 2
2025-11-25 11:58:56 -08:00
Matt Hauff be744cab12 [LABS-298] Simplify push_transactions (#20279)
* Simplify `push_transactions`

* Further simplify
2025-11-25 11:58:12 -08:00
Arvid Norberg 7b3a773683 Test conditions pool reward (#20288)
* make test_conditions.py use the farmer reward, and not the pool reward, for its tests. This prepares this test to work with v2 plots, since they don't support redirecting the pool reward

* fix get_plot_id() for v2 proofs

* fix proof-of-space tests
2025-11-25 11:57:52 -08:00
Matt Hauff e36c25fe29 Fix flaky data layer test (#20295)
Add a wallet sync check
2025-11-25 11:38:11 -08:00
Matt Hauff bc957225e7 [LABS-288] Less asset_id: str (#20261)
* Less `asset_id: str`

* Missed a couple

* Missed a couple more

* Missed another?
2025-11-25 11:37:48 -08:00
Matt Hauff 2b3c11e170 [CHIA-3610] Port cancel_offer(s) to @marshal (#20066)
* Port `cancel_offer` to `@marshal`

* Port `cancel_offers` to `@marshal`

* forgot `push=True`
2025-11-25 10:57:19 -08:00
Zachary Brown 8b7d1d67b6 checkpoint: into main from release/2.5.7 @ 54bdf378c7 (#20286)
Source hash: 54bdf378c7
Remaining commits: 0
2025-11-24 15:36:04 -08:00
Amine Khaldi cbd7a5c875 CHIA-3817 Make TransactionQueue's put synchronous (#20292)
Make TransactionQueue's put synchronous.
2025-11-24 15:11:34 -08:00
Arvid Norberg 8d4cbab782 make timelord/test_new_peak.py a bit more robust (#20271)
* make timelord/test_new_peak.py a bit more robust

* review comments
2025-11-21 13:27:57 -08:00
Matt Hauff eed4283ec3 [LABS-345] Update hsms to 0.3.2 (#20289)
* Update `hsms` to 0.3.2

* Repin in pyproject.toml

* Remove unintentional changes

* actually undo?
2025-11-21 09:58:36 -08:00
Arvid Norberg b7723252df v2 plots only support pool contract puzzle hash (#20145) 2025-11-21 09:45:56 -08:00
Matt Hauff 5ffb3618a3 [CHIA-3609] Port get_offer(s) to @marshal (#20062)
* Port `get_offer` to `@marshal`

* Port `get_all_offers` to `@marshal`
2025-11-21 09:45:26 -08:00
Arvid Norberg 70b182e9c7 [CHIA-3805] reduce use of pool_reward_puzzle_hash feature of BlockTools (#20277)
* reduce use of pool_reward_puzzle_hash feature of BlockTools, since it's not supported by v2 plots

* the BlockTools feature to ask for a specific pool puzzle hash are not supported by v2 proofs. v2 plots only have pool contract puzzle hash
2025-11-21 09:44:53 -08:00
Arvid Norberg 8beb3ee8d8 Tweak phase out (#20258)
* hoist calculations out of the loop over all test plots

* tweak phase-out to allow zero-epoch phase-outs, for tests

* review comments

* fix off-by-one in is_v1_phased_out

* review comments
2025-11-21 09:41:48 -08:00
Matt Hauff d34bb600f0 [LABS-310] Improve WalletStateManager.get_wallet error handling (#20260)
* Improve `WalletStateManager.get_wallet` error handling

* Fix test regex
2025-11-21 09:38:34 -08:00
Earle Lowe f6fc9328ed Change GetTransactions to use uint32 to support wallets with very large numbers of transactions (#20278) 2025-11-21 09:35:48 -08:00
Matt Hauff edfd6ac045 Fix a flaky test (and less DEFAULT_TX_CONFIG) (#20280) 2025-11-21 09:33:16 -08:00
Amine Khaldi 328276ce80 Merge commit '54bdf378c7a2a60b45b8d8523dd7b10920f029b8' into checkpoint/main_from_release_2.5.7_54bdf378c7a2a60b45b8d8523dd7b10920f029b8 2025-11-21 11:39:07 +01:00
Matt Hauff 40db4635a8 [LABS-245] Enable PEP604 Ruff rules (#20269)
* Enable PEP604 Ruff rules

* Fix harcoded signature in test

* Hack CLVMStreamable test with note to fast follow
2025-11-18 12:34:00 -08:00
Arvid Norberg 6c8ccd246d don't allow, or harvest, v2 plots before hard fork activation (#20263) 2025-11-18 10:06:56 -08:00
Arvid Norberg b1c9beed3f improve v2-plot support in plot-sync (#20238) 2025-11-18 10:05:50 -08:00
Amine Khaldi 8f5a7e0a0d CHIA-3799 It's not reasonable to advertise a new transaction with zero cost (#20231)
It's not reasonable to advertise a new transaction with zero cost.
2025-11-15 10:53:30 -08:00
Matt HauffandAmine Khaldi 2971eb0a3c [LABS-290] Port test_wallet_rpc.py to WalletTestFramework (#20253)
* Port `test_send_transaction`

* Port `test_push_transactions`

* Port `test_get_balance`

* Port `test_get_farmed_amount`

* Port `test_get_farmed_amount_with_fee`

* Port `test_get_timestamp_for_height`

* (restrict some parametrizations)

* Port `create_signed_transaction` (and fix WalletTestFramework)

* Port `test_create_signed_transaction_with_puzzle/coin_announcement`

* Port `test_create_signed_transaction_with_excluded_coins`

* Port `test_get_transactions`

* Port `test_get_transaction_count`

* Port `test_get_coin_records_by_names`

* Port `test_did_endpoints`

* Port `test_nft_endpoints`

* Port `test_key_and_address_endpoints`

* Port `test_select_coins_rpc`

* Port `test_get_coin_records_rpc`

* Port `test_get_coin_records_rpc_limits/failures`

* Port `test_notification_rpcs`

* Port `test_verify_signature`

* Port `test_set_wallet_resync_on_startup`

* Port `test_set_wallet_resync_on_startup_disable`

* Port `test_set_wallet_resync_schema`

* Port `test_cat_spend_run_tail`

* Port `test_get_balances`

* Delete unused fixtures

* Remove DEFAULT_TX_CONFIG

* Fix reuse_puzhash behavior

* Minor improvements.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2025-11-15 10:52:36 -08:00
Matt Hauff 3cf5058793 [LABS-297] Merge get/delete_(all_)notifications (#20259)
* Merge get_(all)_notifications

* Merge delete_(all)_notifications

* Remove unused code path
2025-11-15 10:50:33 -08:00
Arvid Norberg 38d2d9f2d0 make sure to pass in the correct previous transaction block height (#20237)
* make sure to pass in the correct previous transaction block height to get_flags_for_height_and_constants()

* review comments
2025-11-14 16:29:51 -06:00
Almog De Paz ab53414e2a fix tx block refrences in blocktools (#20239)
* fix tx block refrences in blocktools

* fix patch in test

* use pre_sp_block_height fix load_block_list

* rename

* fix params

* remove redundant param
2025-11-12 11:45:44 -07:00
Arvid Norberg 54bdf378c7 introduce test_create_block_generator_custom_spend() (#20240)
introduce test_create_block_generator_custom_spend() test for the mempool_manager
2025-11-12 09:49:06 -07:00
Matt Hauff b1009b100e [LABS-296] Merge get_cat_spendable_coins into get_spendable_coins_for_wallet (#20230)
* merge `get_cat_spendable_coins` into `get_spendable_coins_for_wallet`

* Remove `get_max_spendable_coins` as well

* Fix CR-CAT wallet

* Make the max cap optional
2025-11-12 09:11:07 -07:00
Richard Kiss ec35492946 Api stubs (#19979)
* harvester_api_protocol

* move to apis

* Remove `chia.apis` => `chia.harvester` dependency.

* Remove circular dependencies between `chia.apis` and service modules.

* SolverAPIStub, and add solver to tach.toml.

* Make the stubs (lack of) implementations more consistent.

* Use `stub_metadata_for_type` instead of `class_for_type`.

The only thing ever used from `ApiProtocol` in `WSConnection`
was the metadata field, so let's pass along only that.

* NewSignagePointHarvester2

* remove some stuff
2025-11-12 09:06:12 -07:00
Arvid Norberg 5664516dda Bump chia rs 0.34.0 (#20226)
bump chia_rs to 0.34.0
2025-11-10 17:02:10 -07:00
Matt Hauff 772f152da2 Add a wait_for_wallet_synced to some flaky tests (#20229)
* Add a `wait_for_wallet_synced` to a flaky test

* Another reported test
2025-11-10 17:01:23 -07:00
Almog De Paz 54e915b723 prev_tx_before_sp (#20235)
* prev_tx_before_sp

* update wp to avoid crash

* fix genesis test

* comment

* comments, var names

* check to throw correct error
2025-11-10 11:14:04 -07:00
Matt HauffandAmine Khaldi 599cff3fb1 [LABS-323] Dedup test_spend_clawback_coins (#20221)
* Comment about coverage between tests

* Add a test for errors in wallet file

* Modify manual claim test to do multiple clawbacks at once

* Convert `test_wallet_clawback_claim_auto`

* Convert `test_wallet_clawback_clawback`

* Convert `test_wallet_clawback_sent_self`

* Convert `test_wallet_clawback_claim_manual`

* Convert `test_wallet_clawback_reorg`

* Convert `test_get_clawback_coins`

* Convert `test_clawback_resync`

* Delete original test

* Cleanup helper comments

* Delete auto claim settings test

* Delete get auto claim settings test

* Minor improvement.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2025-11-06 12:26:18 -07:00
Matt Hauff 0c05cbb42c [LABS-289] Add kw_only=True to TransactionRecord (#20228)
Add `kw_only=True` to `TransactionRecord`
2025-11-06 11:13:21 -07:00
Arvid Norberg ece6de2af5 [CHIA-3795] change v1 plot phase-out (#20216)
* change v1 plot phase-out to not affect required iters, and to be quantized to epoch blocks

* disable hard-fork 2 tests until we have a new test cache

* fix rate limits test

* address review comments
2025-11-06 09:36:29 -07:00
Matt Hauff 74ec8a44d4 [CHIA-3608] Port take_offer to @marshal (#20061)
* Port `take_offer` to `@marshal`

* `TransactionEndpointRequest` misses
2025-11-06 09:35:24 -07:00
rocksload 8c50242410 chore: fix some typos in comments (#20197)
Signed-off-by: rocksload <rocksload@outlook.com>
2025-11-03 09:17:42 -07:00
Matt Hauff 1202e933a6 [LABS-293] Ensure wallet is synced for RPC TX endpoints (#20190)
* Ensure wallet is synced for RPC tx endpoints

* Address flakes

* more flakes

* More flakes in DL tests
2025-11-03 09:17:06 -07:00
Matt Hauff fcdb8e4925 Manual fixes for upcoming Ruff pyupgrade push (#20213)
* Manual fixes

* Revert back to variable in type expression

* Fix streamable to handle UnionType
2025-11-03 09:16:42 -07:00
Matt Hauff 590be179fc [LABS-161] Add a method for creating outgoing transactions (#20209)
* Add a method for creating outgoing transactions

* Fix some oversights wrt wallet_id
2025-10-31 08:56:15 -07:00
Matt Hauff 284310d637 [CHIA-3607] Port get_offer_summary to @marshal (#20058)
* Port `get_offer_summary` to `@marshal`

* test coverage
2025-10-31 08:55:36 -07:00