Commit Graph

4104 Commits

Author SHA1 Message Date
Matt Hauff
f4f1528058
Add traceback to front-end error responses (#16280) 2023-09-07 15:31:44 -05:00
Kyle Altendorf
1c5b469c5b
more ws message type awareness in the deamon (#15797) 2023-09-07 14:05:57 -05:00
Kyle Altendorf
d3f2dfaa1e
log traceback for sync from fork point failed (#16221) 2023-09-07 14:04:14 -05:00
Florin Chirica
9071480b4e
Add --verbose option to data create_data_store and limit default output to the store id (#16110)
* Cleanup create_data_store.

* Use indent.

* Typo.

* Lint.

* Call tests with verbose.

* add back in fingerprint from cross-merge stuff

---------

Co-authored-by: Earle Lowe <30607889+emlowe@users.noreply.github.com>
Co-authored-by: Earle Lowe <e.lowe@chia.net>
2023-09-06 18:56:29 -05:00
Florin Chirica
8cc32ed213
Delete DL files on unsubscribe. (#16182)
* Delete files on unsubscribe.

* Handle none case.

* Fix test.

v

* typo

* Lint.

* Update chia/data_layer/data_layer.py

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

* Apply suggestions from code review

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

* rewiew comments.

* review

* Update test_data_rpc.py

* Lint.

* Fix conflict.

* Add retain option.

* Fix test.

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-09-06 18:48:50 -05:00
Kyle Altendorf
1bbfcfaf89
add new plugins: config allowing for custom headers (#16194)
* add new `plugins:` config allowing for custom headers

* add a test
2023-09-06 17:42:25 -05:00
Kronus91
3c81911b37
Optimize NFT coin_added (#16227)
* Optimize NFT coin_added

* Resolve comments

* Resolve comment

* Resolve comments
2023-09-06 17:28:32 -05:00
Kronus91
3f09054548
Optimize CAT coin_added (#16226)
* Optimize CAT coin_added

* Remove TODO
2023-09-06 17:28:00 -05:00
William Allen
b475ad86f5
checkpoint: into main from release/2.0.1 @ 27ccd9a86d (#16266)
Source hash: 27ccd9a86d
Remaining commits: 1
2023-09-06 13:35:04 -05:00
Kyle Altendorf
53ab002502
@dataclass for DataLayer (#16204)
* `@dataclass` for `DataLayer`

* stop hashing `DataLayer`

* conditional shutdowns

* default for `none_bytes`

* separate

* Update chia/data_layer/data_layer.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

* Revert "separate"

This reverts commit 680d2833e4.

* default `._server`

* non-optional subscription lock

---------

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2023-09-06 13:01:46 -05:00
Kyle Altendorf
353f12d5a3
commonize signal setup (#13568)
* commonize signal setup

* add signal setup for async handlers

* future

* Update misc.py

* catch up

* logging

* missed one

* context manager and waiting for signal handlers to complete

* correct logging

* fixup

* fixup
2023-09-06 13:01:11 -05:00
dustinface
cd1d22d29b
wallet: Fix and improve untrusted race caching (#16239) 2023-09-06 13:00:25 -05:00
dustinface
4ee7fe27be
wallet: Refactor new_peak in WalletStateManager and PoolWallet (#16262) 2023-09-06 12:59:55 -05:00
Amine Khaldi
a91f90b36b
Merge commit '27ccd9a86dab07f665820e1ed2e6a6e76c059c72' into checkpoint/main_from_release_2.0.1_27ccd9a86dab07f665820e1ed2e6a6e76c059c72 2023-09-06 17:23:35 +01:00
dustinface
d41bca0e75
simulator: Increase duration limit in test_callback of BlockTools (#16245) 2023-09-06 01:32:09 -05:00
Earle Lowe
27ccd9a86d
Fix issue with GUI and chia plotters when making compressed plots (#16232)
* don't pass in no-direct-downloads on false

* Remove no-direct-downloads

* Remove no-direct-downloads
2023-09-05 15:46:11 -05:00
Arvid Norberg
3cfd6c9fc7
add _run() method to Program (#16229) 2023-09-05 14:39:52 -05:00
Arvid Norberg
762d677f7f
Block tools compute cost (#16231)
* cleanup test by naming constants, and avoid repeating them

* simplify compute_cost_test() function in BlockTools
2023-09-05 14:39:39 -05:00
dustinface
350534bf4f
server: Drop unused send messages (#16215)
* Drop unused `WSChiaConnection.send_messages`

* Drop unused `WSChiaConnection.send_to_others`
2023-09-05 08:46:51 -05:00
dustinface
d0c00937b9
full_node: Stop updating wallets during long sync (#16062) 2023-09-05 08:46:17 -05:00
Almog De Paz
67b3cec8a9
Timelord peak change (#15856)
* skip if known heavier unfinished block

* change comment

* None check

* None check

* None check

* test known heavier block skip

* rename

* tests

* lint

* fix test

* ccomment out lower weight case

* fix rc_hash check

* refactor check

* add init file

* fix setup_timelord call

* use class for tests

* add config to tests

* more lint

* more lint
2023-09-01 13:13:22 -05:00
Kronus91
3a82aacbbe
Prevent redundant peer calls in coin_added (#15735)
* Refine coin_added

* Resolve comments

* Fix assert

* Fix pre-commit

* Resolve comments

* Resolve comments

* Resolve comments

* Resolve comment

* Add todo

* Add generic

* resolve comment

* Fix cat

* Resolve comments

* Fix test
2023-08-31 12:42:30 -05:00
Karlkim Suwanmongkol
0a6719403e
Add a full node RPC endpoint, get_mempool_items_by_coin_name (#16019)
* get_mempool_items_by_coin_name

* use match parameter to check exception value
2023-08-31 12:17:20 -05:00
Amine Khaldi
4c592f209f
Optimize and simplify farmer RPC get_signage_point() (#15472)
Optimize and simplify farmer RPC get_signage_point().
2023-08-31 12:05:42 -05:00
Almog De Paz
d966f3f9e6
Add bad peak cache (#16027)
* add and check bad peak hash

* move check

* refactor, add tests, change cache to Dict

* pr fixes

* fix bad f-string

* refactor chip-0013 errors

* limit cache size, add size to constants

* test cache invalidation fix invalidation bug

* fix off by one

* move cache size to config

* remove bt conf override

* use get_peers_with_peak

* fix expected exception in test_soft_fork4_activation
2023-08-30 13:27:22 -05:00
Kyle Altendorf
4ba48af7a5
DataLayer fingerprint control (#16132)
* preliminary DataLayer fingerprint control implementation

* add cli and tests

* tidy

* catch up with `@pytest.mark.limit_consensus_modes`

* drop unneeded limit consensus modes

* deal with todos
2023-08-30 13:27:01 -05:00
Matt Hauff
6af4f86171
Add extra_conditions as an option to transaction endpoints (#15911)
Add extra_conditions as an argument to all transaction methods
2023-08-29 13:48:16 -05:00
Arvid Norberg
05500ea840
fix waiting for co-routines in plotters_util.py (#16184) 2023-08-29 13:47:38 -05:00
Arvid Norberg
ec9d0096f4
demote log level for TIMESTAMP_TOO_FAR_IN_FUTURE errors (#16101) 2023-08-29 13:46:57 -05:00
Don Kackman
7ad7713b1f
type mismatch for last_time_farmed (#16159) 2023-08-29 13:39:37 -05:00
xchdata.io
254f52f91f
Fix comment typo (#16175)
`time_taken` is computed using `time.time()`. `time.time()` returns a
timestamp in (fractional) seconds. Multiplying seconds by 1_000_000
results in microseconds, not nanoseconds.
2023-08-28 16:10:00 -05:00
Jeff
c85baab9f6
Add get_public_key and get_public_keys daemon RPCs (#16156) 2023-08-28 10:18:38 -05:00
Florin Chirica
3584b3ba7a
Improve testnet connectivity. (#16029)
* Improve testnet connectivity.

* Lint.
2023-08-25 20:24:16 -05:00
Matt Hauff
988d3bb968
Add flags to CR-CAT offer summary (#16131)
* Add flags to CR-CAT Offer Summary

* Fix typo
2023-08-25 15:13:47 -05:00
dustinface
22e4a5f9f3
full_node: Drop unused get_fork_point_no_validations (#16107) 2023-08-24 12:38:35 -05:00
dustinface
3b20b4a2f0
full_node: More use of FullNode.get_peers_with_peak (#16045) 2023-08-24 12:38:22 -05:00
dustinface
2e18f904dd
wallet: Fix comment in WalletNode.validate_received_state_from_peer (#16037) 2023-08-24 12:38:05 -05:00
Florin Chirica
0e5f9eceea
Print JSON for all DL commands. (#16119)
* Print JSON for all DL commands.

* Lint.

* Sort keys.
2023-08-24 02:30:02 -05:00
Kyle Altendorf
538edfd6b8
Do not enable seeder signal handlers in tests (#16079) 2023-08-23 23:04:56 -05:00
Kyle Altendorf
39cf13288e
tidy the DataLayer._update_confirmation_status() usage pattern (#16094)
tidy the `DataLayer._update_confiration_status() usage pattern
2023-08-23 23:03:25 -05:00
Arvid Norberg
ccd715119e
try again a few times if the temporary DB file can't be removed (#16108)
try again a few times if the temporary DB file can't be removed, during simulation shutdown
2023-08-23 23:02:52 -05:00
Matt Hauff
9a50b48f93
Make sure reuse_puzhash works for nft1 offers (#16116) 2023-08-21 17:31:44 -05:00
Kyle Altendorf
b75acc76f9
consolidate --fingerprint definitions (#16114) 2023-08-21 15:47:37 -05:00
William Allen
6b48170b0c
checkpoint: into main from release/2.0.0 @ 10d09e6cd5 (#16115)
Source hash: 10d09e6cd5
Remaining commits: 2
2023-08-18 23:01:38 -05:00
Matt Hauff
d08eaa67d0
Fix VC mypy issues (#16117) 2023-08-18 15:35:23 -05:00
Jeff
29c4ce541d
Support calling get_routes via wss (#16103)
Rework get_routes to support being called via wss
2023-08-18 14:52:02 -05:00
Amine Khaldi
173f919fb7
Merge commit '10d09e6cd554a7f6a2b61b5373cdf5ac9cf82a21' into checkpoint/main_from_release_2.0.0_10d09e6cd554a7f6a2b61b5373cdf5ac9cf82a21 2023-08-18 20:17:31 +01:00
William Allen
1419002c2b
checkpoint: into main from release/2.0.0 @ b59315836d (#16112)
Source hash: b59315836d
Remaining commits: 3
2023-08-18 14:05:00 -05:00
Matt Hauff
000499484d
Add the option for arbitrary conditions to make_solution (#15888)
* Add the option for arbitrary conditions to make_solution

* Unknown conditions should come first

* Fix related VC driver bug
2023-08-18 14:04:27 -05:00
Matt Hauff
a545e6a8a7
Introduce TXConfig and CoinSelectionConfig (#15666)
* Explore TXConfig

* test fixes

* more test fixs

* more test fixs

* Make TXConfig a CoinSelectionConfig subclass

* Move RPC config loading into decorator

* Fix mempool performance test

* Fix wallet sync test

* Fix streamable

* Forgot send_transaction_multi

* Remove potentially_inside_lock change

* Add .override to config object

* A few fixes from review

* Get create_message_spend working with tx_config.reuse_puzhash

* pylint and rebase fixes

* Add tests for CMD loaders

* Add RPC client and tests for cancel_offers endpoint

* Add some coverage

* Fix did test

* Add DID test coverage

* add tests for TXConfig & CoinSelectionConfig

* Add reuse_puzhash to dl wallet test

* Add reuse puzhash to dl_wallet test

* Add test coverage to wallet sync test

* Add more tests for TXConfig

* Add tests for coin_funcs.py

* Add some wallet_funcs tests

* Bad merge

* Fix bad test

* condense cmd tests

* test coverage ignore

* merge fix

* Undo GUI change

* Remove a couple of unused tx_endpoints

* Changes due to (#15846)

* Merge fixes

* new=True

* Fix the coins tests

* Fix DID tests

* Fix NFT tests

* Fix VC tests

* Fix wallet tests

* Delete now uneccessary tests

* Fix bad change
2023-08-18 14:03:37 -05:00