Amine Khaldi
96b4c27f7d
Merge commit '97245c959df4441687d1b2efb694edcc9d196d4b' into checkpoint/main_from_release_2.0.0_97245c959df4441687d1b2efb694edcc9d196d4b
2023-07-21 21:56:20 +01:00
William Allen
97245c959d
Chip13 ( #15688 ) ( #15825 )
...
* Chip13 (#15688 )
* Chip13
* Lint.
* Black.
* Lint.
* Fix BlockTools.
* Trigger the soft fork.
* Parametrize bt.
* Syntax.
* Add softfork3 to empty_blockchain too.
* Skip test.
* Skip test.
* Try fix.
* Add persistent blocks.
* Lint.
* Run tests without block cache.
* Try to fix tests.
* Revert "Try to fix tests."
This reverts commit f10c7fc847
.
* WIP plot filters.
* pytest.
* Lint.
* Skip cache tests.
* Try to lower the constraints.
* Try to increase timeout.
* Test blockchain.
* Store test.
* Revert to main
* Revert to main
* Revert to main
* Add tests with new interface
* Test.
* Fixtures.
* Fixtures.
* Lint.
* Add first test.
* Improve test.
* Isort.
* merge fix
* fix counter
* Bump test-cache version to soft_fork3.0 DBs
* Enable tests.
* Enable all.
* Syntax.
* Attempt higher timeouts.
* Try to skip big test.
* Revert tests larger timeouts.
* Try to get test to work with 4000.
* Skip 10000 blocks.
* Test.
* Update test_full_node_store.py
* Update test_blockchain.py
* Update test_blockchain.py
* Update tests/conftest.py
Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
* Update tests/blockchain/test_blockchain.py
Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
* Address some comments.
* Some more comments.
* Use new passes_plot_filter signature.
* Lint.
* Lint.
* Reduce benchmark timeout.
* Skip test.
* Address review comments.
* Delete leftovers.
* Review comments.
* await.
* Revert async call.
* Validate in body too.
* Fix test.
---------
Co-authored-by: almog <almogdepaz@gmail.com>
Co-authored-by: wallentx <william.allentx@gmail.com>
Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
* Fix daemon test to use client ssl context
* fix daemon test to close client
---------
Co-authored-by: Florin Chirica <fchirica96@gmail.com>
Co-authored-by: almog <almogdepaz@gmail.com>
Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
Co-authored-by: Earle Lowe <e.lowe@chia.net>
2023-07-21 15:54:11 -05:00
Florin Chirica
7c6cf2cfe9
Chip13 ( #15688 )
...
* Chip13
* Lint.
* Black.
* Lint.
* Fix BlockTools.
* Trigger the soft fork.
* Parametrize bt.
* Syntax.
* Add softfork3 to empty_blockchain too.
* Skip test.
* Skip test.
* Try fix.
* Add persistent blocks.
* Lint.
* Run tests without block cache.
* Try to fix tests.
* Revert "Try to fix tests."
This reverts commit f10c7fc847
.
* WIP plot filters.
* pytest.
* Lint.
* Skip cache tests.
* Try to lower the constraints.
* Try to increase timeout.
* Test blockchain.
* Store test.
* Revert to main
* Revert to main
* Revert to main
* Add tests with new interface
* Test.
* Fixtures.
* Fixtures.
* Lint.
* Add first test.
* Improve test.
* Isort.
* merge fix
* fix counter
* Bump test-cache version to soft_fork3.0 DBs
* Enable tests.
* Enable all.
* Syntax.
* Attempt higher timeouts.
* Try to skip big test.
* Revert tests larger timeouts.
* Try to get test to work with 4000.
* Skip 10000 blocks.
* Test.
* Update test_full_node_store.py
* Update test_blockchain.py
* Update test_blockchain.py
* Update tests/conftest.py
Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
* Update tests/blockchain/test_blockchain.py
Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
* Address some comments.
* Some more comments.
* Use new passes_plot_filter signature.
* Lint.
* Lint.
* Reduce benchmark timeout.
* Skip test.
* Address review comments.
* Delete leftovers.
* Review comments.
* await.
* Revert async call.
* Validate in body too.
* Fix test.
---------
Co-authored-by: almog <almogdepaz@gmail.com>
Co-authored-by: wallentx <william.allentx@gmail.com>
Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
2023-07-20 21:25:23 -05:00
Matt Hauff
e325bf99da
Remove CAT1 UX guards ( #15812 )
2023-07-20 16:30:07 -05:00
Amine Khaldi
de05016ce0
New aggregate signature conditions ( #15769 )
...
* New aggregate signature conditions.
* compute domain strings on the fly (but cache them) (#2 )
* Addendum to Arvid's idea.
* Fix a typo.
* more test coverage (#3 )
* Fix a typo.
* Refactor final message creation logic into make_aggsig_final_message.
* Cover make_aggsig_final_message exception cases.
* Refactor processing spends' agg sig lists in pkm_pairs.
* Construct a Coin out of a Spend and use it in make_aggsig_final_message.
* Adopt Richard's dictionary trick to simplify make_aggsig_final_message.
* Leverage make_aggsig_final_message in WalletTool's sign_transaction.
---------
Co-authored-by: Arvid Norberg <arvid.norberg@gmail.com>
2023-07-20 15:29:10 -05:00
Earle Lowe
a4471bfa8a
pass DataLayer root and generation instead of requerying ( #15613 )
...
* Cache root changes in insert_batch loop
* Reduce selects for root and generation
* remove sql logging, extracted to https://github.com/Chia-Network/chia-blockchain/pull/15690
* remove optimization extracted to https://github.com/Chia-Network/chia-blockchain/pull/15691
* remove optimization extracted to https://github.com/Chia-Network/chia-blockchain/pull/15728
* Delete test_batch_speed.py
benchmark provided in another already merged pr
* add `Root.to_row()`
* shift optimization to `DataStore.get_keys_values_dict()`
* rename to `intermediate_root`
* less tuple returning
* Revert "shift optimization to `DataStore.get_keys_values_dict()`"
This reverts commit b12ae08e3b
.
* add `test_data_store.test_insert_batch_reference_and_side()`
---------
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-07-19 13:47:17 -05:00
Izumi Hoshino
5c76f50117
Farmer now returns missing signage points ( #15765 )
...
* Farmer now returns missing signage points
* Added test
* Fixed lint error
* Ignored strange pylint behavior
* Fixed lint error
---------
Co-authored-by: Earle Lowe <e.lowe@chia.net>
2023-07-18 21:04:03 -05:00
Izumi Hoshino
85d14f561a
Added compression level and harvesting mode to harvester protocol/mes… ( #15776 )
...
* Added compression level and harvesting mode to harvester protocol/messages
* Added test
* Fixed lint error
2023-07-18 16:24:56 -05:00
Izumi Hoshino
1f9081a225
Added total_effective_plot_size
for get_harvesters
RPC API ( #15770 )
...
* Added `total_effective_plot_size` for `get_harvesters` RPC API
* Fixed lint error
* Change the type of `total_effective_plot_size` in Receiver to `int`
* Fixed lint error
* Fixed lint error 2
* Changed text
* Added test
* Fixed lint error
* Fixed lint error 2
* Fixed a test issue
* Added config.py to tests/cmds
2023-07-18 12:36:12 -05:00
Izumi Hoshino
b772ac91db
Added cuda and plot compression support for bladebit 3 ( #15774 )
...
* Added cuda and plot compression support for bladebit 3
* Update chia/plotters/bladebit.py
Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
* Update chia/plotters/bladebit.py
Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
* Fixed issues
* Fixed lint error
---------
Co-authored-by: Arvid Norberg <arvid@libtorrent.org>
2023-07-18 12:33:42 -05:00
Izumi Hoshino
dd1fbeb040
Added get_keys_for_plot
daemon server API ( #15772 )
...
* Added `get_keys_for_plot` daemon server API
* Fixed isort error
* Added assertion code
* Added tests
* Fixed flake8 error
* Applied review suggestion
* Added test cases for daemon client
* Renamed `get_keys_for_plot` -> `get_keys_for_plotting`
2023-07-18 12:26:48 -05:00
Izumi Hoshino
3b116c738b
Added average_block_time
to get_blockchain_state
FullNode RPC API ( #15777 )
...
* Added `average_block_time` to `get_blockchain_state` FullNode RPC API
* Updated the code according to the review
* Fixed lint error
* Fixed lint error 2
* Fixed lint error 3
* Applied review suggestion
* Fixed lint error
* Update
* Added tests
* Fixed test
2023-07-17 16:34:04 -05:00
Izumi Hoshino
e772e4ff69
Improved pool stats handling ( #15764 )
...
* Improved pool stats handling
* Minor update
* Made `increment_pool_stats` free function
* Updated `increment_pool_stats` function args
* Fixed isort issue
* WIP: Adding test cases
* Fixed lint error
* Fixed lint error 2
* Fixed lint error 3
* Added test case
2023-07-17 15:39:00 -05:00
Kyle Altendorf
aa3e1563e8
avoid DataLayer insert ancestors precheck ( #15728 )
...
* avoid DataLayer insert ancestors precheck
* remove original change
* update
* no cover `:[`
2023-07-17 15:37:27 -05:00
Matt Hauff
80c07a7476
Remove references to old offer mod ( #15694 )
...
* Remove references to old offer mod
* Add guards in RPC against parsing old offers
* Fix benchmark test
* test coverage
2023-07-17 15:02:04 -05:00
Kyle Altendorf
79c71cb192
fixup per file matrix generation config ( #15761 )
2023-07-17 14:22:47 -05:00
Arvid Norberg
99c55fea67
Announce conditions limit ( #15790 )
...
* Test announcement condition limits for soft-fork 3
* run slow wallet-sync tests in plain mode only
---------
Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>
2023-07-17 13:17:48 -05:00
Matt Hauff
ac4c2ca2ee
Fix flaky CAT test ( #15759 )
...
* Fix flaky CAT test
* Update test_transaction_store test
2023-07-17 13:16:51 -05:00
Kyle Altendorf
9aae96df08
avoid DataLayer insert precheck ( #15691 )
...
* avoid DataLayer insert precheck
* just check the string...
* Update test_data_store.py
* Update data_store.py
* no cover `:[`
2023-07-17 13:15:41 -05:00
Kyle Altendorf
ca34240b43
add sql logging config for DataLayer ( #15690 )
...
* add sql logging config for DataLayer
* add test
* data_sql.log
2023-07-17 13:15:22 -05:00
Izumi Hoshino
fcde4bd619
Added blocks_won
and last_time_farmed
to get_farmed_amount
Wall… ( #15778 )
...
* Added `blocks_won` and `last_time_farmed` to `get_farmed_amount` Wallet RPC API
* Updated code according to the review
* Fixed performance degradation
* Fixed lint error
2023-07-17 10:23:20 -05:00
Matt Hauff
494e6e7f22
Add RPC client and tests for cancel_offers endpoint ( #15758 )
2023-07-17 10:22:52 -05:00
Arvid Norberg
eda68c0cdd
solution_generator ( #15768 )
...
* use solution_generator() from rust
* farm blocks with backrefs
* update BlockTools to generate block generators serialized with backrefs
* support deserializing programs with backrefs
2023-07-17 10:05:37 -05:00
Kyle Altendorf
2d28d62ab2
move sqlite host parameter limit to db wrapper ( #15755 )
...
* move sqlite host parameter limit to db wrapper
* pylint
* E
* oops
* fixup
2023-07-14 19:38:36 -05:00
Kyle Altendorf
fb15774ccb
use actual chiapos version when testing daemon ( #15754 )
...
* use actual chiapos version when testing daemon
* isort
2023-07-14 15:48:24 -05:00
Izumi Hoshino
15fa5f3764
Added quality lookup time info to FarmingInfo ( #15775 )
2023-07-14 14:23:34 -05:00
Kyle Altendorf
42a6d1afa6
remove support for Python 3.7 ( #14611 )
...
* remove support for Python 3.7
* python_requires=">=3.8, <4"
* 3.8.1+
* catchup
* remove todos handled in https://github.com/Chia-Network/chia-blockchain/pull/15755
2023-07-14 12:49:58 -05:00
Arvid Norberg
849166361d
bump chia_rs dependency to 0.2.9 ( #15760 )
2023-07-13 23:19:46 -05:00
dustinface
ede354c58f
protocols: Introduce error
protocol message ( #15493 )
...
* protocols: Introduce `error` protocol message
* Add `Optional` extra data `Error.data`
* Test `Err` entries
2023-07-13 13:46:20 -05:00
William Allen
f96690bdc5
Renaming instances of 'decompresser' to 'decompressor' ( #15751 )
...
* Renaming instances of 'decompresser' to 'decompressor'
* Making 'parallel_decompressors_count' singular
* Using chiapos version that has matching spelling
* Putting the clsp file back where I found it
* fix ver
---------
Co-authored-by: Jack Nelson <j.nelson@chia.net>
2023-07-13 09:59:51 -05:00
Arvid Norberg
7b67fe0a4a
compressed plot support ( #15702 )
...
* Compression branch.
* disable GPU farming in tests
---------
Co-authored-by: Florin Chirica <fchirica96@gmail.com>
2023-07-12 16:49:15 -05:00
Florin Chirica
e84bdb0b30
Add fields to BlockRecord. ( #15695 )
...
* Add fields to BlockRecord.
* Lint.
* Checkpoint refactor.
* Lint.
* Optimize get_block_records_by_hash.
* Lint.
* Coverage.
* Optimize v1 get_block_record.
* Trailing space.
* Remove async with await.
* Default 400.
* Address review comment.
2023-07-12 12:47:02 -05:00
Amine Khaldi
4cf2bc9813
Unify test_create_coins_with_amounts() versions into one ( #15738 )
...
Unify test_create_coins_with_amounts() versions into one.
2023-07-12 11:22:01 -05:00
Matt Hauff
58e6081465
Add DIDWallet.get_coin() to simplify DID wallet ( #15730 )
...
* Add DIDWallet.get_coin() to simplify DID wallet
* set not list
* Test coverage
2023-07-12 11:10:03 -05:00
Arvid Norberg
cecda28e84
Plot filter hard fork ( #15336 )
...
* update passed_plot_filter() to take the filter size rather than consensus constants. This allows the filter size to change by block height. make verify_and_get_quality_string() take either the height or filter size
* Add some filter_prefix_bits tests on test blocks.
* Add some filter_prefix_bits tests on simulated farmer and harvester.
* Cache filter prefix bits by challenge chain signage point hash and use that for the the lookups. This allows us to perform plot filter validation.
* Add more cases to verify_and_get_quality_string() unit tests.
* Add some tests for Farmer's respond_signatures.
* Apply Kevin's suggestion to simplify the check for passing plot filter.
* Apply Kevin's suggestions to simplify some test checks and fix a couple typos.
* Apply Kevin's suggestion to send peak height instead of filter prefix bits as part of NewSignagePoint.
* Remove no longer needed filter prefix bit related logic and make height non optional in verify_and_get_quality_string().
---------
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2023-07-12 10:26:23 -05:00
Kronus91
40a347f1a7
Clawback resync ( #15496 )
...
* Double check coin state
* Fix coverage
* Resolve comments
* Fix unit test
* Fix redundant tx
* Add unit test
* Fix unit test
* refine unit test
* Remove duplicate test
* Fix test on Windows
* Fix clawback memo
* Fix revert
* Improve clawback test
* Remove pragma
* Resolve comments
* Revert clawback test fix
* Add comment for tx confirmed
* Resolve comments
* Remove unrelated change
* Resolve comments
* Fix coverage
2023-07-11 13:31:53 -05:00
Arvid Norberg
1e534d0281
pass consensus constants into get_name_puzzle_conditions(). ( #15736 )
...
pass consensus constants into get_name_puzzle_conditions(). This is required for tests that use alternate constants, such as fork activation heights
2023-07-11 09:52:49 -05:00
dustinface
d1d3522629
server: Store Handshake.software_version
in connections as str
( #15725 )
2023-07-10 11:53:43 -05:00
Arvid Norberg
1d06adc9a6
forward flags
in get_puzzle_and_solution_for_coin()
( #15708 )
...
support backrefs in the clvm serialization passed in- and out of get_puzzle_solution()
2023-07-07 18:08:15 -05:00
Arvid Norberg
ca1147584d
Hard fork 2.0 ( #15581 )
...
* add HARD_FORK_2_0 consensus_mode to run tests under hard-fork consensus rules
* hook up soft-fork and hard-fork changes in CLVM
* fix AGG_SIG_* garbage tests for the 2.0 hard-fork
* add test for unknown conditions with cost, which is a hard-fork feature
* add mempool tests for unknown conditions with cost
* add tests for the SOFTFORK condition
* fix benchmark to take LIMIT_ANNOUNCES into account
2023-07-07 13:58:43 -05:00
Kyle Altendorf
1b2ed64ce7
less e501 ( #15689 )
2023-07-07 11:19:11 -05:00
Amine Khaldi
16cb8b9750
Linting addendum.
2023-07-06 20:27:44 +01:00
Amine Khaldi
a6713258c6
Merge commit 'f90ddf42ad5ff047533ba979b96c4d7f3b21f916' into checkpoint/main_from_release_1.8.2_f90ddf42ad5ff047533ba979b96c4d7f3b21f916
2023-07-06 20:26:03 +01:00
Jack Nelson
d30922d6b6
Fix fork height constant for simulator / block tools ( #15629 )
...
* add fork height const
* Update block_tools.py
* fix tests
2023-07-06 13:24:56 -05:00
Kyle Altendorf
b8808d0c71
add DataLayer batch insert benchmark ( #15645 )
...
* add DataLayer batch insert benchmark
* isort
* datacases and chosen limits
* randbytes -> getrandbits
* bump limits per repeated run data
2023-07-05 19:22:47 -05:00
Jeff
e4312344d0
add get_wallet_addresses RPC for deriving wallet addresses ( #15668 )
...
* add get_wallet_addresses RPC for deriving wallet addresses
* tests for get_wallet_addresses
* linter fix
* fix tests
* use datacases
* update monkeypatched function based on feedback
2023-07-05 18:04:17 -05:00
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
Arvid Norberg
f90ddf42ad
Eos challenge optimization ( #15642 )
...
* fix cache miss (#107 )
* Increase vdf client timeout (#103 )
* Increase vdf client timeout.
* Reset only on new peak.
* Increase next_iters_count to 10 (#118 )
* new end of slot ses validation (#99 )
* eos validate infused challenge chain hash in all locations, validate deficit
* lint
* add iterations/diff check
* check all cases of ses
* remove asserts log and return none
* remove asserts log and return none
* typo
* fix store tests
* fix store tests
* lint
* remove logs
---------
Co-authored-by: Almog De Paz <almogdepaz@gmail.com>
Co-authored-by: Florin Chirica <fchirica96@gmail.com>
Co-authored-by: Earle Lowe <30607889+emlowe@users.noreply.github.com>
2023-06-27 15:34:31 -05:00
Amine Khaldi
7e50f5e0b0
Merge commit '03943a0e51413f1f7fbd1f9ff852fe7259c0658e' into checkpoint/main_from_release_1.8.2_03943a0e51413f1f7fbd1f9ff852fe7259c0658e
2023-06-27 20:18:36 +01:00
William Allen
d2d2c682ad
cherry-pick #5423 ( #15626 )
...
Fix `.get_next_from_coin_spend` on VerifiedCredential and test new puzhashes (#15423 )
Fix .get_next_from_coin_spend on VCWallet and test new puzhashes
Co-authored-by: Matt Hauff <quexington@gmail.com>
2023-06-27 01:15:31 -05: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
dustinface
e3beca2d0d
full_node: More set usage in subscription code ( #15420 )
2023-06-09 05:11:54 -05:00
Arvid Norberg
3ccaf37f77
use a more aggresive activation schedule on testnet10 ( #15376 )
2023-06-09 05:09:24 -05:00