Commit Graph

3897 Commits

Author SHA1 Message Date
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
Matt Hauff a449a2feae
Handle VC syncing exceptions better (#15627)
* Handle VC syncing exceptions better

* coverage

* Return
2023-06-30 13:41:58 -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
Matt Hauff 35540012d7
Minor improvements to SpendBundle.debug() + test (#15636)
Minor improvements to debug_spend_bundle
2023-06-29 08:37:09 -05:00
Arvid Norberg 8f7fc2d8fe
remove unused run_as_generator function on SerializedProgram (#15654) 2023-06-29 08:35:24 -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 7218777574
Merge commit 'bde6f3965cbd248a28156eb1d99db9d28dd10aee' into checkpoint/main_from_release_1.8.2_bde6f3965cbd248a28156eb1d99db9d28dd10aee 2023-06-27 16:16:14 +01:00
Rigidity e3e825813c
Update simulator SSL keys to PKCS#8 (#15630) 2023-06-27 01:05:54 -05:00
Rigidity 986284fe74
Use PKCS#8 format for SSL private keys (#15594)
* Modify CA key file to use PKCS#8 instead of PKCS#1

* Output PKCS#8 not PKCS#1 (TraditionalOpenSSL)
2023-06-23 16:57:15 -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
Arvid Norberg 3d94d3a7ff
2.0 updates (#15580)
* add names for new error codes (from chia_rs)

* add constant for SOFTFORK condition opcode

* add chialisp constant for SOFTFORK condition
2023-06-22 07:08:34 -05:00
Amine Khaldi 1904baff04
Annotate harvester_rpc_client.py (#15379)
Annotate harvester_rpc_client.py.
2023-06-21 18:13:34 -05:00
Arvid Norberg d1c22134ad
bump chia_rs to 0.2.8 (#15575) 2023-06-21 13:59:22 -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
Kyle Altendorf 7ba5272a97
call fix_ssl() after create_all_ssl() in block tools (#15517) 2023-06-21 12:54:39 -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
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
William Allen bb430d060b
checkpoint: into main from release/1.8.2 @ 0e569c2610 (#15545)
Source hash: 0e569c2610
Remaining commits: 8
2023-06-16 16:04:32 -05:00
Kyle Altendorf 4675e1f276
tidy priority mutex try/finally (#15542) 2023-06-16 13:03:44 -05:00
dustinface 92b149cd57
full_node: `uint32.MAXIMUM_EXCLUSIVE` -> `uint32.MAXIMUM` (#15544) 2023-06-16 11:46:37 -05:00
Amine Khaldi e19863172a
Merge commit '0e569c2610c37bbcdda937309d58181f1bb393d9' into checkpoint/main_from_release_1.8.2_0e569c2610c37bbcdda937309d58181f1bb393d9 2023-06-16 16:26:16 +01: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
Kronus91 bde6f3965c
Fix get transactions CLI for Clawback (#15541)
Handle coin record missing
2023-06-16 08:29:28 -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
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
William Allen f8b09ced71
Fix vcs get command when no proofs exist yet (#15432) (#15534)
Co-authored-by: Matt Hauff <quexington@gmail.com>
2023-06-15 13:11:52 -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
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
Matt Hauff 79bf694800
Add **kwargs to all generate_signed_transaction definitions (#15240)
* Add **kwargs to all generate_signed_transaction definitions

* Add support for VC wallet too

* attempt to hint kwargs

* Import TypedDict from typing_extensions instead

* Fix tail driver call to generate_signed_transaction
2023-06-13 17:24:17 -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
dustinface e7f8aa0827
seeder: Hint `crawler_api.py` (#15498) 2023-06-13 11:25:15 -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 0e569c2610
Add -l to vcs revoke command (#15468) 2023-06-09 16:36:08 -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
Matt Hauff 2441035afc
Add reorg rollback to retry store (#15303)
add reorg rollback to retry store
2023-06-09 16:35:11 -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
dustinface 05b5265234
wallet: Fix clawback hex files (#15477) 2023-06-09 11:06:07 -05:00
dustinface bb5b3ccf6f
server: Drop unused `WSChiaConnection.active` (#15464) 2023-06-09 05:12:54 -05:00