Florin Chirica
c7e18033ec
Lint.
2024-10-18 06:04:30 +03:00
Florin Chirica
9676318cf5
Lint.
2024-10-18 06:01:52 +03:00
Florin Chirica
f6207f83f5
Lint.
2024-10-18 05:55:48 +03:00
Florin Chirica
bdb002eff0
Lint.
2024-10-18 05:43:10 +03:00
Florin Chirica
fbf18145f7
Lint.
2024-10-18 05:28:28 +03:00
Florin Chirica
d108e3edc7
Lint
2024-10-18 05:14:34 +03:00
Florin Chirica
557068c704
Merge branch 'long_lived/datalayer_merkle_blob' into fc.dl_integration
2024-10-18 05:07:19 +03:00
Florin Chirica
df75337b50
Delete data on unsubscribe.
2024-10-18 04:59:05 +03:00
Richard Kiss
f69233aa08
Move some files closer to where they should live. ( #18465 )
...
* Move to `chia.full_node.util.safe_cancel_task`
* Move to `chia/wallet/util/pprint.py`
* Separate out `IPAddress` into `ip_address.py`
2024-10-17 14:25:05 -07:00
William Blanke
658d3562a9
fix bluebox
2024-10-16 18:12:37 -07:00
Kyle Altendorf
9c8557a1f8
Remove Python 3.8 support and update source to 3.9 standards ( #18687 )
...
* manual python 3.8 removals
* poetry
* pyupgrade
* black
* isort
* manually tidy imports
* work around shadowed type
* catch up build network protocol files for pyupgrade changes
* placate pylint
* re-enable 20.04
* placate flake8
2024-10-16 14:21:15 -07:00
Matt Hauff
3ce4acb49c
[CHIA-1635] Add default for number_of_coins in CombineCoins ( #18704 )
...
Add default for `number_of_coins` in `CombineCoins`
2024-10-16 11:25:03 -07:00
Kyle Altendorf
9c9640daad
add use of rust datalayer merkle blob
2024-10-16 12:16:09 -04:00
matt-o-how
21c6f397ef
Require fewer arguments for chia wallet coins split in the CLI ( #18689 )
...
* initial commit
* add test the other way around
* isort
* black and mypy
* catch coin not found
* black
* add extra tests for code coverage
* remove assert coins is not None
2024-10-16 08:50:44 -07:00
Kyle Altendorf
3f2ea38d75
Merge commit 'd678131ded709e6264127984ae5fc12c6823cafa' into catchup/long_lived_datalayer_merkle_blob_from_main_d678131ded709e6264127984ae5fc12c6823cafa
2024-10-16 11:15:12 -04:00
Florin Chirica and Kyle Altendorf
5cd6bcd8a3
standalone merkle blob for datalayer ( #18403 )
...
* add `chia.data_layer.util.merkle_blob`
* raw node [de]serialization tests
* `NewType`s and other
* just `RawLeafMerkleNode.key_value`
* drop the root node type, internal or leaf might be the root
* trivial tree deserialization
* comment
* add `MerkleBlob.get_lineage()`
* store the index on the raw node objects (great? or not...?)
* Checkpoint.
* Some linting.
* Some type checking.
* Lint.
* Add proof of inclusion code.
* Fix test.
* Lint.
* Add free positions.
* Lint.
* Improve test.
* Lint.:
* Lint.
* Add upsert.
* Go with lower limits.
* Apply Kyle's change.
* Lint.
* ignore astuple mypy complaint
* add `c_profile` fixture
* Add cache.
* Lint.
* Lint.
* Add batch autoinsert.
* Lint.
* Checkpoint split keys and values ids.
* Lint.
* Lint.
* Lint.
* Lint.
* Fix tests.
* Lint.
* Add reference and side.
* Update merkle_blob.py
* Lint.
* Lint.
* Lint.
* Lint.
* Lint
* Improve coverage.
* Lint.
* Improve coverage.
* Lint.
* Improve test.
---------
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2024-10-15 22:13:57 -04:00
Florin Chirica
1a6153fd8b
Some linting.
2024-10-16 04:41:22 +03:00
Florin Chirica
1bbbcf8cd3
Lint.
2024-10-16 04:29:56 +03:00
Florin Chirica
24495ab5ba
Cherry pick CHIA-1427.
2024-10-16 04:22:45 +03:00
Florin Chirica
743c455ed2
Merge branch 'long_lived/datalayer_merkle_blob' into fc.dl_integration
2024-10-16 03:56:51 +03:00
Florin Chirica
4f4c18591a
Download working.
2024-10-16 03:42:29 +03:00
Arvid Norberg
d678131ded
[CHIA-1087] validate blocks in thread pool (instead of process pool) ( #18681 )
...
* bump chia_rs dependency and accomodate for changes to SpendBundleConditions and run_block_generator()
* use ThreadPoolExecutor instead of ProcessPoolExecutor in pre_validate_blocks_multiprocessing
* don't serialize BlockRecords when passing into pre_validate_blocks_multiprocessing
* dont' pickle the list of full blocks passed into batch_pre_validate_blocks
* don't serialize conditions when passed to batch_pre_validate_blocks
* don't serialize previous session blocks passed to batch_pre_validate_blocks
* don't serialize the return value from batch_pre_validate_blocks
* make the batch size 1, in pre_validate_blocks_multiprocessing(). With the jobs running in a thread pool, there's no serialization cost we need to amortize over a batch
* make batch_pre_validate_blocks() only validate a single block at a time. rename it to pre_validate_block()
* avoid copying recent_blocks into each validation job. since they run in a thread we can just use the blockchain object directly
* merge loops over the blocks in pre_validate_blocks_multiprocessing(), to simplify the code and to build fewer temporary lists
2024-10-15 09:40:47 -07:00
Patrick Maslana
fd4a59af19
checkpoint: into main from release/2.4.4 @ 08a9a4d2b7 ( #18697 )
...
Source hash: 08a9a4d2b7
Remaining commits: 0
2024-10-15 08:47:35 -07:00
Amine Khaldi
8f8fddaf6b
Merge commit '08a9a4d2b7f833730a59c8b970f9bcd16b846bec' into checkpoint/main_from_release_2.4.4_08a9a4d2b7f833730a59c8b970f9bcd16b846bec
2024-10-15 12:04:35 +01:00
Arvid Norberg
837f0e2d47
bump chia_rs dependency ( #18695 )
...
bump chia_rs dependency and accomodate for changes to SpendBundleConditions and run_block_generator()
2024-10-11 13:43:31 -07:00
Arvid Norberg
5f01fccdc6
[CHIA-598] virtual project structure ( #18616 )
...
slightly modified subset of Quexington's virtual project structure. All files default to be treated as belonging to chia-blockchain project. No default annotations. no default exclusions.
2024-10-10 13:56:33 -07:00
Starttoaster
74a34af51f
checkpoint: into main from release/2.4.4 @ 74536ba781 ( #18676 )
...
Source hash: 74536ba781
Remaining commits: 2
2024-10-08 14:18:34 -07:00
Amine Khaldi
221c6e6771
CHIA-1593 Annotate test_cached_bls.py ( #18678 )
...
Annotate test_cached_bls.py.
2024-10-08 14:18:02 -07:00
Amine Khaldi
8e39d5e5d7
CHIA-1602 Remove no longer needed TestNetwork class ( #18682 )
...
Remove no longer needed TestNetwork class.
2024-10-08 14:17:51 -07:00
Matt Hauff
08a9a4d2b7
[CHIA-1569] Fix fee behavior with chia wallet coins combine ( #18679 )
...
* Fix coin fees wrt coin combining
* Add override behavior
2024-10-08 12:11:14 -07:00
Florin Chirica
870df12d61
Fix more tests.
2024-10-08 04:39:42 +03:00
matt-o-how and Arvid Norberg
5f6c336e75
[CHIA-621] Add a configurable limit to the amount of DIDs that can be automatically added to the users wallet from transfer ( #18655 )
...
* add cap to amount of DID wallets that can be automatically created
* add further testing
* add extra tests for recovering discarded DID and making new DIDs above the limit
* lint fix
* add types to test functions
* add log warning when ignoring DID
* typing fixes for tests
* a few more typing fixes
* black
* Update chia/_tests/wallet/did_wallet/test_did.py
Co-authored-by: Arvid Norberg <arvid@libtorrent.org >
* fix wrong wallet node get_wallet() call
* fix rebase
* remove unused typeignore
---------
Co-authored-by: Arvid Norberg <arvid@libtorrent.org >
2024-10-07 11:09:41 -07:00
Arvid Norberg
e7241ebfe0
simplify passing around difficulty, sub slot iterators and prev_ses_block ( #18660 )
...
* combine current sub slot iterations, current difficulty and previous ses block into ChainState, to make it easier to pass around and update
* address review comments
* address review comments. rename ChainState -> ValidationState. add more comments
2024-10-07 11:09:15 -07:00
Amine Khaldi
a810384448
CHIA-1564 Simplify WalletSpendBundle class by leveraging some parent class methods ( #18666 )
...
Simplify WalletSpendBundle class by leveraging some parent class methods.
2024-10-07 11:08:44 -07:00
Amine Khaldi
853046de88
Merge commit '74536ba7813bbf91746ca95ab0065c8bbcb1f608' into checkpoint/main_from_release_2.4.4_74536ba7813bbf91746ca95ab0065c8bbcb1f608
2024-10-07 12:23:36 +01:00
Starttoaster
54ad7b4a91
checkpoint: into main from release/2.4.4 @ b353a398fe ( #18670 )
...
Source hash: b353a398fe
Remaining commits: 0
2024-10-04 15:34:53 -07:00
Amine Khaldi
2efb374b74
CHIA-1570 Annotate generator_tools_testing.py ( #18669 )
...
Annotate generator_tools_testing.py.
2024-10-04 09:00:51 -07:00
wjblanke
74536ba781
CHIA-1568: fix object has no attribute code errors ( #18665 )
...
* fix object has no attribute code errors
* fix
2024-10-04 09:00:29 -07:00
Amine Khaldi
f3a0240869
Merge commit 'b353a398fef5d04e0da45de8310e322aaddd6cef' into checkpoint/main_from_release_2.4.4_b353a398fef5d04e0da45de8310e322aaddd6cef
2024-10-04 12:21:28 +01:00
Kyle Altendorf
b353a398fe
stop asking for zero random bits of data ( #18668 )
2024-10-03 13:32:02 -07:00
Matt Hauff and Kyle Altendorf
81824c9b34
[CHIA-1308] Port wallet node RPC endpoints to @marshal decorator ( #18651 )
...
* Port `set_wallet_resync_on_startup`
* Port `get_sync_status`
* Port `get_height_info`
* Port `push_tx`
* Port `push_transactions`
* Delete `farm_block`
* Port `get_timestamp_for_height`
* Port `get_auto_claim` and set_auto_claim`
* pylint
* fix test
* pylint again
* typo
Co-authored-by: Kyle Altendorf <sda@fstab.net >
* clearer comment
Co-authored-by: Kyle Altendorf <sda@fstab.net >
---------
Co-authored-by: Kyle Altendorf <sda@fstab.net >
2024-10-03 08:28:58 -07:00
Amine Khaldi
40e0df2c25
CHIA-1472 Augment get_mirror_info to accept both types of programs ( #18637 )
...
Augment get_mirror_info to accept both types of programs.
This allows us to use serialized programs without the need to convert them into programs.
2024-10-03 08:28:07 -07:00
Amine Khaldi
7c814b1713
CHIA-1554 Annotate test_taproot.py ( #18661 )
...
Annotate test_taproot.py.
2024-10-03 08:26:54 -07:00
Geoff Walmsley
4befaf54bc
Fix DID balance reporting, and port DID tests to WalletTestFramwork ( #18662 )
...
* fix double counting in did balances
* port did_tests to WalletTestFramework
* pylint
* update did tests in test_nft_wallet
* update vc tests
2024-10-03 08:26:33 -07:00
Florin Chirica
89721b68b3
Checkpoint fix tests.
2024-10-02 04:29:37 +03:00
Amine Khaldi
9109d8926d
CHIA-1525 Make PreValidationResult take SpendBundleConditions instead of NPCResult ( #18647 )
...
Make PreValidationResult take SpendBundleConditions instead of NPCResult.
2024-10-01 07:25:46 -07:00
Earle Lowe
7759619b58
[CHIA-1427]: Limit full file creation when processing subscription generations ( #18612 )
...
* Some logging and some code to limit full file generation based on the max number of full files allowed
* Don't write out full files that aren't needed
* Black fixes
* Adjust the full file during error conditions
* No need for try
2024-09-30 09:33:08 -07:00
Amine Khaldi
33e79e3668
CHIA-1485 Simplify calling pre_validate_spendbundle and avoid spend vs spend bundle confusion ( #18639 )
...
Simplify calling pre_validate_spendbundle and avoid spend vs spend bundle confusion.
2024-09-30 09:32:37 -07:00
Amine Khaldi
8552e35e14
CHIA-1491 Annotate test_wallet_interested_store.py ( #18644 )
...
Annotate test_wallet_interested_store.py.
2024-09-30 09:32:26 -07:00
Florin Chirica
8aed02ffb0
Checkpoint integration.
2024-09-30 19:07:34 +03:00