Commit Graph

3231 Commits

Author SHA1 Message Date
Sebastjan Trepca 17dcb71b8a
bad trade test fix (#15653)
* bad trade test fix

* increase resends
2023-06-30 17:48:11 -05:00
Matt Hauff 424c51072d
Fix hint parsing for CATs and DIDs (#15259)
* Fix hint parsing for CATs and DIDs

* Handle not hinted coins

* Fix compute_coin_hints condition checking

* don't try to sync non-singleton children of singleton

* coverage ignores

* rename function

* Make function do what it says

* wallet: Some suggestions from #15274 for #15259 (#15547)

* wallet: Some suggestions from #15274 for #15259

* Return a dict with the coin id as key

* Drop `compute_hint_for_coin`, Test `compute_spend_hints_and_additions`

---------

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2023-06-30 13:42:09 -05:00
Kyle Altendorf e0114470b4
checkout plots and blocks for clawback tests (#15671) 2023-06-30 11:34:22 -05:00
Kyle Altendorf f66b521067
Add DataLayer clear pending roots interfaces (#15516)
* add clear pending roots cli and rpc

* add tests

* drop extracted changes

* remove extracted change

* tidy

* add --yes

* handle todo

* more todo
2023-06-29 20:49:54 -05:00
Kyle Altendorf 2e4943ef80
add build-job-matrix.py --timeout-multiplier (#15526)
* add build-job-matrix.py --timeout-multiplier

* add test for build-job-matrix.py --timeout-multiplier
2023-06-29 20:49:03 -05:00
Kyle Altendorf ba3ac20c55
fix checking of matrix.configuration.checkout_blocks_and_plots (#15454)
* fix checking of matrix.configuration.checkout_blocks_and_plots

* enable more blocks and plots downloading
2023-06-29 20:48:50 -05:00
Kyle Altendorf e2a5f8d7da
correct sim test to `x in a and y in a` (#15554) 2023-06-29 20:48:06 -05:00
Matt Hauff 35540012d7
Minor improvements to SpendBundle.debug() + test (#15636)
Minor improvements to debug_spend_bundle
2023-06-29 08:37:09 -05:00
William Allen 461ec85485
checkpoint: into main from release/1.8.2 @ 199052fdb2 (#15657)
Source hash: 199052fdb2
Remaining commits: 4
2023-06-28 18:40:07 -05:00
Jeff fa6f3f67d0
support calling daemon commands from chia rpc CLI (#15584)
* add daemon as a callable service

* re-adding "get_routes" command

* added a test for get_routes

* linter fix

* reformatted with black

* addressed PR feedback
2023-06-28 18:38:53 -05:00
Amine Khaldi 795d00a764
Merge commit '199052fdb23e246ea36707523e06153bc2276bad' into checkpoint/main_from_release_1.8.2_199052fdb23e246ea36707523e06153bc2276bad 2023-06-28 20:23:45 +01:00
Amine Khaldi 7e50f5e0b0
Merge commit '03943a0e51413f1f7fbd1f9ff852fe7259c0658e' into checkpoint/main_from_release_1.8.2_03943a0e51413f1f7fbd1f9ff852fe7259c0658e 2023-06-27 20:18:36 +01:00
Sebastjan Trepca 199052fdb2
fixing flaky clawback test (#15619)
clawback flaky test fix
2023-06-26 21:44:50 -05:00
dustinface 7b2f481d31
wallet: Deduplicate coin states from peers (#15598) 2023-06-23 12:59:26 -05:00
Kyle Altendorf 8f34146654
add Command protocol for daemon (#15592)
* add Command protocol for daemon

* remove get routes for now

* oops
2023-06-23 12:58:14 -05:00
Amine Khaldi b498188c0d
Move harvester_farmer_environment to conftest.py (#15590)
Move harvester_farmer_environment to conftest.py.
2023-06-22 11:13:55 -05:00
Arvid Norberg ad3353d9b4
don't parameterize the blockchain tests on DB version (#15588)
* don't parameterize the blockchain tests on DB version, in order to save CI time

* skip duplicate runs of stores tests based on the consensus mode (i.e. hard-fork or soft-fork testing), since the consensus rules don't affect the store classes. Right now, PLAIN is the only mode we have, but we're about to introduce HARD_FORK_2_0 and SOFT_FORK3 as new consensus modes in the tests
2023-06-22 11:04:10 -05:00
Kyle Altendorf 03943a0e51
allow tests/tools/test_full_sync.py::test_full_sync_test to run on 3.7 (#15570)
* allow tests/tools/test_full_sync.py::test_full_sync_test to run on 3.7

* drop dirs_exist_ok=

* more

* less
2023-06-21 18:14:34 -05:00
Amine Khaldi 290e9ecd3f
Annotate test_full_node_store.py (#15573)
Annotate test_full_node_store.py.
2023-06-21 16:16:53 -05:00
dustinface f85e68ee22
full_node: Don't send duplicates in `register_interest_in_puzzle_hash` (#15560)
* Test self hinted coin in puzzle hash subscription

* Don't send duplicates in `register_interest_in_puzzle_hash`

* Some tweaks in the test
2023-06-21 13:11:35 -05:00
Amine Khaldi 4f2dec820a
Annotate test_coin_store.py (#15571)
Annotate test_coin_store.py.
2023-06-21 12:53:05 -05:00
Chris Marslender 8fd44c1906
Add config option to accept private network addresses from introducers (#15543)
* Add configuration option to accept private network addresses from introducers

* Add tests for the enable_private_networks config option

* Fix lint and such

* Test state of private networks in address manager after init

* Check for None on address_manager
2023-06-21 12:43:35 -05:00
Amine Khaldi 3a914cea92
Annotate test_block_store.py (#15569)
Annotate test_block_store.py.
2023-06-21 11:45:47 -05:00
William Allen 0af77f6a21
checkpoint: into main from release/1.8.2 @ 33fa3f47de (#15564)
Source hash: 33fa3f47de
Remaining commits: 5
2023-06-20 16:32:28 -05:00
dustinface a72142a305
mypy: Fix issues introduced by 1.4.0 release (#15562) 2023-06-20 14:46:10 -05:00
Amine Khaldi 7b90192e96
Merge commit '33fa3f47deb29cb7d55463914bce16f6ad774b86' into checkpoint/main_from_release_1.8.2_33fa3f47deb29cb7d55463914bce16f6ad774b86 2023-06-20 19:58:30 +01:00
Amine Khaldi 31b9ec466f
Merge commit 'd97889660ce0e28c29ffbec0c497455bd36b59f0' into checkpoint/main_from_release_1.8.2_d97889660ce0e28c29ffbec0c497455bd36b59f0 2023-06-20 15:54:14 +01:00
Adam Kelly d196247456
Rephrase async contextmanager DBConnection to use asynccontextmanager (#15538)
* Rephrase async contextmanager DBConnection to use asynccontextmanager
https://docs.python.org/3/library/contextlib.html#contextlib.asynccontextmanager

* drop tests.util.db_connection from typecheck exclusions list
2023-06-16 16:42:14 -05:00
Amine Khaldi c027c33445
Improve error messages in verify_and_get_quality_string() and add unit tests (#15501)
Improve error messages in verify_and_get_quality_string() and add unit tests.
2023-06-16 09:32:54 -05:00
dustinface 508087251c
util: Some tweaks to `StructStream` and sized ints (#15090)
* Only define `StructStream` members, don't give them defaults

* `MAXIMUM_EXCLUSIVE` -> `MAXIMUM`

* Make `MINIMUM` and `MAXIMUM` instances of the underlying class

* Make the `StructStream` members `ClassVar`s

* More explicit and consistent `MINIMUM` and `MAXIMUM` assignments

* Comment about instantiation

* Use `MAXIMUM`
2023-06-16 09:32:17 -05:00
dustinface b2498d2917
full_node: Add `max_height` to `CoinStore.get_coin_states_by_ids` (#15467) 2023-06-15 19:02:04 -05:00
dustinface 551ee5765b
tests: Run `build_network_protocol_files` as test (#15511) 2023-06-15 16:43:11 -05:00
William Allen 893fadd994
checkpoint: into main from release/1.8.2 @ 82c9ed953d (#15525)
Source hash: 82c9ed953d
Remaining commits: 4
2023-06-15 15:17:47 -05:00
dustinface 8664a88cd4
tests: Test existance of DID wallets after some operations (#15123) 2023-06-15 09:46:58 -05:00
dustinface 1765971426
rpc: Fix and test `WalletRpcApi.get_coin_records_by_names` (#15509) 2023-06-15 09:46:31 -05:00
Amine Khaldi 5dbc00d12e
Merge commit '82c9ed953d8b76936c3005c21831234eba155c8e' into checkpoint/main_from_release_1.8.2_82c9ed953d8b76936c3005c21831234eba155c8e 2023-06-14 22:35:27 +01:00
dustinface 45ee466d44
tests: `job_timeout=40` for `tests.wallet.rpc` (#15512) 2023-06-14 16:11:57 -05:00
dustinface a414b41905
tests: Use separate `BlockTools` in farmer/harvester fixtures (#15510) 2023-06-14 16:09:13 -05:00
Kronus91 33fa3f47de
Add CLI for Clawback (#15483)
* Add CLI for Clawback

* Fix coverage & Disable auto claim

* Display Clawback TX in CLI

* Fix coverage

* Fix get transaction amount
2023-06-14 13:51:38 -05:00
Kronus91 d97889660c
Add filters for get_transaction_count API (#15502)
Add filters for get_transaction_count
2023-06-14 07:51:59 -05:00
dustinface 49140b2b3c
server: Introduce `ApiProtocol` (#15466)
* server: Introduce `ApiProtocol`

* genericize (#5)

* `ApiProtocol.api_ready` -> `ApiProtocol.ready()`

* Add `ApiProtocol.log` and give APIs separate loggers

* Fix `CrawlerAPI`

* Drop some unrelated removals

* Fix some of the generic hinting

* Revert some changes in `timelord_api.py`

* Fix `CawlerAPI` readiness

* Fix hinting

* Get some `CrawlerAPI` coverage

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-06-13 20:12:25 -05:00
Earle Lowe 46a244ae09
daemon plotter RPC tests (#15291)
* daemon plotter RPC tests

* remove debug cruft

* Add stop_plotting test

* Add stop_plotting test

* Fix up test

* Remove specific test_mode and adjust tests

* Fix madmax test and add a couple minor tests

* cleanup unused code

* Updates based on code suggestions
2023-06-13 17:27:48 -05:00
dustinface d6a2a9aa5d
seeder: Drop `CrawlerAPI.__getattr__` (#15489)
* Test sending unknown messages to the crawler

* Drop `CrawlerAPI.__getattr__`

* Use a real crawler service for the test
2023-06-13 15:25:39 -05:00
Matt Hauff 9b465a08c6
Only subscribe to inner wallet puzzle hashes (#14356)
* Only subscribe to inner wallet puzzle hashes

* Add a store for unacknowledge CAT coin states

* Add additions and removals to dummy TX

* whoops

* Add interested coin IDs when saving trade

* black

* One test was not hinting, make it use push_transaction RPC instead

* restructure and comment a block

* Change asset ID to blob and add index

* Add get all puzzle hashes by wallet id

* Separate unacknowledged state getter and deletion

* Remove peer_id from CAT states table

* lint

* fix forwards compat tests

* isort

* Subscribe to the change children of CATs

* Hint to change

* undo unintentional changes

* Change cat test

* fix test_cat_spend test memo check

* provide save_trade parameter

* Address comments by @xdustinface

* Fix memos assertion again

* hint in test cat creation

* Missing save_trade call

* time out assert

* Hint in RPC test

* Fix wallet resync function

* Fix DB bug, add test coverage

* pass offer to save_trade

* add reorg rollback to unacknowledged states

* Add some unit tests
2023-06-13 12:51:16 -05:00
Arvid Norberg ed0f0eba67
fix flaky `MAX_FUTURE_TIME` test (#15499)
fix MAX_FUTURE_TIME tests
2023-06-13 09:56:25 -05:00
William Allen fde6d6fe73
checkpoint: into main from release/1.8.2 @ c55be8e163 (#15476)
Source hash: c55be8e163
Remaining commits: 1
2023-06-09 17:33:19 -05:00
Matt Hauff cf15c0fcb9
rename exclude_coin_* -> excluded_coin_* for consistency (#15460)
* exclude -> excluded

* Add a bit of test coverage

* fix bad change

* Add test coverage

* Add a little more test coverage
2023-06-09 16:35:53 -05:00
dustinface 5e0b8bb1ec
util: Drop `chia.util.chunks` and use `chia.util.to_batches` instead (#15418) 2023-06-09 16:35:31 -05:00
Kronus91 82c9ed953d
Clawback fixes (#15475)
Fix Clawback known issues
2023-06-09 12:15:40 -05:00
Amine Khaldi 37891cf01f
Merge commit 'c55be8e16364750ede9694ebdf58d5d143ecef97' into checkpoint/main_from_release_1.8.2_c55be8e16364750ede9694ebdf58d5d143ecef97 2023-06-09 17:15:14 +01:00