Commit Graph
5861 Commits
Author SHA1 Message Date
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
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
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
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
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
Florin Chirica 82f8e94f1f Lint. 2024-09-18 21:22:25 +03:00
Florin Chirica 489020e319 Lint. 2024-09-18 21:16:24 +03:00
Florin Chirica 024b2ad825 Lint. 2024-09-18 21:11:29 +03:00
Florin Chirica 7ac2f81342 Lint. 2024-09-18 20:33:06 +03:00
Amine Khaldi 0b68fd941e CHIA-1387 Simplify fetching TX data in create_bundle_from_mempool_items (#18586)
Simplify fetching TX data in create_bundle_from_mempool_items.
2024-09-16 11:50:16 -07:00
Florin Chirica e073155e06 Checkpoint split keys and values ids. 2024-09-16 20:18:13 +03:00
thesemaphoreslim 1b4b8e8df5 Fixed logging for fast bluebox timelord and added Visual Studio (.vs)… (#18558)
* Fixed logging for fast bluebox timelord and added Visual Studio (.vs) to gitignore.

* Make black CI check happy

* Ran through another "black" reformat to pass CI
2024-09-15 13:59:32 -07:00
Felix Brucker a617ed5c86 Fix new pool url detection (#18521)
* Fix new pool url detection

* Make flake8 happy

* Make black happy
2024-09-13 11:00:41 -05:00
dependabot[bot]andEarle Lowe 2ef2d4185d build(deps): bump aiohttp from 3.9.5 to 3.10.2 (#18440)
* build(deps): bump aiohttp from 3.9.5 to 3.10.2

Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.9.5 to 3.10.2.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst)
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.9.5...v3.10.2)

---
updated-dependencies:
- dependency-name: aiohttp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updates for new aiohttp

* Try increasing a timeout

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Earle Lowe <e.lowe@chia.net>
2024-09-13 11:00:22 -05:00
linchizhen f82e9b41f4 chore: fix some comments (#18487)
Signed-off-by: linchizhen <jiayanbing@yeah.net>
2024-09-13 10:52:41 -05:00
pengbanban 3d916bd25d chore: fix some comments (#18485)
Signed-off-by: pengbanban <pengbanban@aliyun.com>
2024-09-13 10:52:32 -05:00
murongshaozong b6b18086d6 chore: fix some comments (#18452)
Signed-off-by: murongshaozong <netease163@icloud.com>
2024-09-13 10:52:23 -05:00
Matt Hauff d611c7e7b8 [CHIA-1211] Use better key resolution logic in derivation commands (#18516)
* Resolve root secret key always during non observer derivation

* Tweak a bit

* Fix tests

* A bit simpler

* Add test coverage
2024-09-12 16:29:33 -05:00
Matt Hauff ab21776cfe [CHIA-1359] Fix action scope callbacks across multiple .use calls (#18572)
Fix action scope callbacks across multiple `.use` calls
2024-09-12 13:08:12 -05:00
Matt HauffandAmine Khaldi 810f0bfdaa [CHIA-1204] Add missing client endpoints for corresponding Wallet RPC endpoints (#18578)
* Add client endpoints for `get/set_auto_claim`

* Add client endpoint for `verify_signature`

* Add client endpoint for `get_transaction_memo`

* Add client endpoint for `get_offers_count`

* Add client endpoint for `get_cat_list`

* Add client endpoint for `did_get_pubkey`

* Port `test_creation_from_backup_file` to `WalletTestFramework`

* Add client endpoint for `did_get_information_needed_for_recovery`

* Add client endpoint for `did_get_current_coin_info`

* Add client endpoint for `nft_get_by_did`

* Add client endpoint for `nft_set_nft_status`

* Add client endpoint for `nft_get_wallets_with_dids`

* Add client endpoint for `nft_set_did_bulk`

* Add client endpoint for `nft_transfer_bulk`

* Make sure we have a proper tx_id in test_wallet_make_transaction_with_memo.

* Reuse request's address after checking it.

* Minor readability improvement.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2024-09-12 13:07:55 -05:00
Matt Hauff c256c8cc11 [CHIA-1175] Add TXConfig args to coin commands (#18583)
Add TXConfig args to coin commands
2024-09-12 13:07:45 -05:00
Matt Hauff 19451268d2 [CHIA-1069] Use smarter coin selection algorithm for DAO wallet select_coins_for_asset_type (#18579)
Use smarter coin selection algorithm for DAO wallet `select_coins_for_asset_type`
2024-09-11 17:02:02 -05:00
Matt Hauff ac8b96defd [CHIA-1346] Add a full node RPC client to WalletTestFramework (#18580)
* Add a full node RPC client to `WalletTestFramework`

* Add test

* comments by @altendky
2024-09-11 17:01:37 -05:00
Kyle Altendorf a6a27bfe8e optimize datalayer hashing (#18510) 2024-09-11 09:41:54 -07:00
Almog De Paz b6faed828f clean add block and prevalidation (#18569)
* add_block ssi not optional

* pass ses block to prevalidaiton

* fix tests

* covrage

* move parma
2024-09-11 09:41:32 -07:00
Arvid Norberg ef4f526dfc AugmentedBlockchain (#18535)
* remove dead code

* introduce AugmentedBlockchain, implementing the BlocksProtocol and can include 'additional blocks', useful for validating batches of blocks where we need to pretend the previous blocks in the batch are valid while validating the later blocks

* simplify pre_validate_blocks_multiprocessing by using AugmentedBlockchain

* address review comments
2024-09-11 08:04:18 -05:00
Matt Hauff 6a1189828d [CHIA-1357] Correctly set start_index in create_more_puzzle_hashes (#18571)
Correctly set `start_index` in `create_more_puzzle_hashes`
2024-09-11 00:11:19 +08:00
Matt Hauff 2f3e9f1b67 [CHIA-687] Remove dummy TX from trade manager take_offer (#18564)
Remove dummy TX from trade manager take_offer
2024-09-10 07:03:15 +08:00
Matt Hauff c6f1d162bd [CHIA-1302] Check to confirm external TXs submitted by wallet (#18561)
Check to confirm externals TXs submitted by wallet
2024-09-10 07:02:16 +08:00
Almog De Paz 9559295725 refactor pre_validate_blocks_multiprocessing (#18469)
* refactor pre_validate_blocks_multiprocessing

* fix condtion

* get diff and ssi from blocks

* works_with_skip_ses

* add default

* propegate_to_header_validation

* pass data between batches

* remove redundant code

* merge fix

* remove optionals and refactor tests

* only use cache

* merge fix

* fix test

* dont traverse if we have prev sub epoch block

* return bad_prev error if block is missing

* mandetory param names

* clean

* fix_benchmark_test
2024-09-07 05:11:42 +08:00
Arvid Norberg 1947d99e4f Refactor get_block_generator() (#18531)
* refactor get_block_generator() to prepare for easier composing of a layered blockchain class

* make get_block_generator() part of the interface to the blockchain rather than an independent, free function passed in the validation. This keeps the view of the blockchain more focused to a single class.

* add test for get_block_generator

* add unit test for Blockchain.lookup_block_generators()

* address review comments

* address review comments
2024-09-07 01:49:51 +08:00
Matt Hauff 9ad05277e3 [CHIA-1174] Extract coin combining logic from CLI to RPC (#18536)
Extract coin combining logic from CLI to RPC
2024-09-07 01:49:40 +08:00
Matt Hauff 3aa8706f5e Remove initial_freeze_period from RPCs (#18563)
remove initial_freeze_period from rPCS
2024-09-07 01:49:26 +08:00
Chris Marslender 385916a6a2 Remove chia-seeder.h9.com (#18559)
Remove chia-seeder.h9.com - has been offline for months and we have received no response about it being down
2024-09-06 05:28:18 +08:00
Matt Hauff 8e3a42c7c1 [CHIA-1165] Add --valid-at/--expires-at to all CLI transaction endpoints (mostly hidden) (#18501)
* pre-parse timelock args into `ConditionValidTimes`

* Add @timelock_args to @tx_out_cmd

* Fix CLI tests

* Hide feature for most commands
2024-09-06 00:23:09 +08:00
Florin Chirica 0804b67d78 Lint. 2024-09-05 18:49:22 +03:00