Commit Graph
13072 Commits
Author SHA1 Message Date
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
Florin Chirica 870df12d61 Fix more tests. 2024-10-08 04:39:42 +03:00
matt-o-howandArvid 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
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
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 HauffandKyle 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
Earle Lowe 0ab72914fa Update GUI pin to 71bae1c072941217cde26a70e864d9add1de07f9 (#18656)
Update GUI pin to
2.4.4-rc1
2024-10-01 11:24:26 -07: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
Kyle Altendorf b4137651b6 maybe fixup main coverage diff (#18645)
maybe fixup `main` coverage diff
2024-09-30 11:02:21 -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
dependabot[bot] cc554eac90 build(deps): bump chiavdf from 1.1.4 to 1.1.6 (#18634)
Bumps [chiavdf](https://github.com/Chia-Network/chiavdf) from 1.1.4 to 1.1.6.
- [Release notes](https://github.com/Chia-Network/chiavdf/releases)
- [Commits](https://github.com/Chia-Network/chiavdf/compare/1.1.4...1.1.6)

---
updated-dependencies:
- dependency-name: chiavdf
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 09:32:48 -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
Earle Lowe c0c12b90c6 [CHIA-1437]: Reduce level log spam when downloading DAT files (#18610)
* Reduce level log spam when downloading files

* black fix

* Just change info->debug
2024-09-27 10:02:29 -07:00
Kyle Altendorf 3ca9b5ee91 remove no-wallet-found traceback from /dl_owned_singletons (#18632) 2024-09-27 10:00:33 -07:00
Izumi Hoshino b7fbc6b235 Updated GUI pin for 2.4.4 (#18607)
Updated GUI pin
2024-09-26 14:11:58 -07:00
Arvid Norberg 0059b5e052 [CHIA-1087] Simplify batch pre validate blocks (#18602)
* minor simplification of stacked if-conditions and early exits on failure paths

* Simplify NPCResult -> SpendBundleConditions

* make include_spends() take SpendBundleConditions, rather than NPCResult
2024-09-26 12:04:01 -07:00
github-actions[bot]andChiaAutomation 439cd07590 CA Cert updates (#18627)
adding ca updates

Co-authored-by: ChiaAutomation <automation@chia.net>
2024-09-26 08:55:36 -07:00
Arvid Norberg 0764c8da33 Bump chia rs 0.14.0 (#18643)
* bump chia_rs to 0.14.0

* update tests covering negative division (allowed since the hard fork) and infinity G1 keys (disallowed with soft fork 5)

* BLSCache.update() takes GTElement now

* use get_conditions_from_spendbundle() in test_mempool_manager, to get the ANALYZE_SPENDS behavior

* fix mypy warnings
2024-09-26 08:55:26 -07:00
Amine Khaldi 4383b6f930 CHIA-1465 Simplify double spend validation in validate_block_body (#18628)
Simplify double spend validation in validate_block_body.
2024-09-26 06:15:29 -07:00
Earle Lowe 44db523f9d [CHIA-1486] Update to macOS 13 for build and test (#18640)
Update to macOS 13 for build and test
2024-09-25 14:58:30 -07:00
Kyle Altendorf e3aac5ba3e Revert "CHIA-645 Optimize build ancestors table. (#18100)" (#18609)
* Revert "CHIA-645 Optimize build ancestors table. (#18100)"

This reverts commit 9b7bb246cb.

* restore tests
2024-09-25 11:56:54 -07:00
Matt Hauff 0d8d38d01c [CHIA-1306] Tweak TransactionEndpointRequest to require TX args (#18601)
* Tweak `TransactionEndpointRequest` to require TX args

* whoops

* Add an option around the ban
2024-09-25 11:56:34 -07:00
Matt Hauff bffb7b11c3 [CHIA-1307] Port key management RPCs to @marshal decorator (#18593)
* Port `log_in` to decorator

* Port `get_logged_in_fingerprint` to decorator

* Port `get_public_keys` to decorator

* Port `get_private_key` to decorator

* Port `get_mnemonic` to decorator

* Port `add_key` to decorator

* Port `delete_key` to decorator

* Port `check_delete_key` to decorator

* Port `delete_all_keys` to decorator

* Bad copypasta
2024-09-24 15:08:09 -07:00
Amine Khaldi c6630f9aff CHIA-1388 Check the cat list values from get_cat_list against the default cats in test_cat_endpoints (#18587)
Check the cat list values from get_cat_list against the default cats in test_cat_endpoints.
2024-09-24 08:54:53 -07:00
Amine Khaldi a3e6bb497d CHIA-1413 Annotate test_wallet_key_val_store.py (#18603)
Annotate test_wallet_key_val_store.py.
2024-09-24 08:54:43 -07:00
Amine Khaldi 75d6126417 CHIA-1451 Remove no longer needed TestWalletInterestedStore class (#18621)
Remove no longer needed TestWalletInterestedStore.
2024-09-24 08:54:34 -07:00
Amine Khaldi 06ae8681da CHIA-1454 Extend coins without building lists on each step in combine_coins (#18622)
Extend coins without building lists on each step in combine_coins.
2024-09-24 08:54:20 -07:00
dependabot[bot] ff5b36fbb1 build(deps): bump setuptools from 71.1.0 to 75.1.0 (#18596)
Bumps [setuptools](https://github.com/pypa/setuptools) from 71.1.0 to 75.1.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v71.1.0...v75.1.0)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-23 09:49:30 -07:00
Amine Khaldi 19dd1e0d58 CHIA-1362 Deduct block overhead from the mempool's maximum block clvm cost limit (#18574)
Deduct block overhead from the mempool's maximum block clvm cost limit.
2024-09-23 09:49:16 -07:00
Arvid NorbergandAmine Khaldi 1e8c999c09 multiprocess_validation refactor (#18541)
* slightly simplify call to pre_validate_blocks_multiprocessing. batch size is always 4, check_filter is always True. Remove the member function wrapper around it in Blockchain, to prepare for being able to pass wrapped blockchains into it

* address review comments

* Apply suggestions from code review (addendum).

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2024-09-23 09:48:11 -07:00
Matt HauffandAmine Khaldi 111b0e57d5 Port test_trades.py to WalletTestFramework (#18590)
* Port `test_trade_cancellation`

* Delete obsolete test

* Port `test_trade_conflict`

* Port `test_trade_bad_spend`

* Port `test_trade_high_fee`

* Port `test_aggregated_trade_state`

* Remove DEFAULT_TX_CONFIG

* Remove accidental comments

* Use fee in our respond_to_offer call.

* Minor readability tweak.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2024-09-20 15:04:32 -07:00
Florin Chirica 6237de69fe Lint. 2024-09-20 03:16:51 +03:00
Florin Chirica 3d4158d92b Fix tests. 2024-09-20 03:14:21 +03:00
Zachary Brown 8b96b2331a Add version number to every log line (#18608)
* Add version number to every log line

* Switch to using the __version__ variable in the logs

* Make line of code shorter to satisfy code standards

* Fix multiline code formatting

* code formatting
2024-09-19 14:55:35 -07:00
Amine Khaldi 7c1a899fa8 CHIA-1377 Remove no longer needed tx_bytes in add_transaction (#18585)
Remove no longer needed tx_bytes in add_transaction.
2024-09-19 10:00:20 -07:00
dependabot[bot] 9eb07b1fef build(deps): bump pytest from 8.1.1 to 8.3.3 (#18598)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.1.1 to 8.3.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.1.1...8.3.3)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-18 11:50:13 -07:00