Commit Graph
14659 Commits
Author SHA1 Message Date
Matt HauffandGitHub 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 HauffandGitHub 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
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 HauffandGitHub c256c8cc11 [CHIA-1175] Add TXConfig args to coin commands (#18583)
Add TXConfig args to coin commands
2024-09-12 13:07:45 -05:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9ecba6d48c build(deps): bump flake8 from 7.0.0 to 7.1.1 (#18463)
Bumps [flake8](https://github.com/pycqa/flake8) from 7.0.0 to 7.1.1.
- [Commits](https://github.com/pycqa/flake8/compare/7.0.0...7.1.1)

---
updated-dependencies:
- dependency-name: flake8
  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-11 17:02:18 -05:00
Matt HauffandGitHub 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 HauffandGitHub 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 AltendorfandGitHub a6a27bfe8e optimize datalayer hashing (#18510) 2024-09-11 09:41:54 -07:00
Almog De PazandGitHub 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 NorbergandGitHub 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 HauffandGitHub 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 HauffandGitHub 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 HauffandGitHub 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
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
99d3eb4ec8 build(deps): bump cryptography from 43.0.0 to 43.0.1 (#18556)
Bumps [cryptography](https://github.com/pyca/cryptography) from 43.0.0 to 43.0.1.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/43.0.0...43.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-10 00:30:44 +08:00
Almog De PazandGitHub 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 NorbergandGitHub 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 HauffandGitHub 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 HauffandGitHub 3aa8706f5e Remove initial_freeze_period from RPCs (#18563)
remove initial_freeze_period from rPCS
2024-09-07 01:49:26 +08:00
Chris MarslenderandGitHub 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 HauffandGitHub 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
Florin Chirica 77b0965d90 Add batch autoinsert. 2024-09-05 18:20:50 +03:00
Amine KhaldiandGitHub 4d225bed35 CHIA-1291 Switch mempool TX prevalidation to the Rust version (#18557)
Switch mempool TX prevalidation to the Rust version.
2024-09-05 22:17:23 +08:00
Arvid NorbergandGitHub 094f0dd1e3 add test targets just for pre-generating the test chains (#18525) 2024-09-05 05:53:16 +08:00
wjblankeandGitHub 7adde3d5b4 Fix BrokenProcessPool error for Windows installer blueboxing (#18546)
* switch to threads from multiprocessing since we drop the gil anyway

* lint
2024-09-05 05:52:51 +08:00
Kyle AltendorfandGitHub 6560be415c increase compatibility with upload action v4.4.0 (#18551)
* increase compatibility with upload action v4.4.0

https://github.com/actions/upload-artifact/releases/tag/v4.4.0

* Update test-single.yml

* Update test.yml

* Update test.yml

* Update test-single.yml
2024-09-05 05:50:28 +08:00
Amine KhaldiandGitHub a3c59ad91a CHIA-1247 Use blockchain_constants to ensure hard fork behavior in test_fill_rate_block_validation (#18534)
Use blockchain_constants to ensure hard fork behavior in test_fill_rate_block_validation.
2024-09-04 23:47:53 +08:00
bd021a126b [CHIA-1164] Port test_nft_wallet.py to WalletTestFramework (#18530)
* Port `test_nft_wallet_creation_automatically`

* Port `test_nft_wallet_rpc_creation_and_list`

* Port `test_nft_wallet_rpc_update_metadata`

* Port `test_nft_with_did_wallet_creation`

* Port `test_nft_rpc_mint`

* Port `test_nft_transfer_nft_with_did`

* Port `test_update_metadata_for_nft_did`

* Port `test_update_metadata_for_nft_did`

* Port `test_nft_bulk_set_did`

* Port `test_nft_transfer_nft_with_did`

* Port `test_nft_set_did`

* Port `test_set_nft_status`

* Port `test_nft_sign_message`

* Remove DEFAULT_TX_CONFIG

* Remove unnecessary WalletStateTransitions

* Swap out id variables with aliases

* Whoops

* Remove unused function

* Slightly clearer ResponseFailureError match in test_nft_wallet_rpc_creation_and_list.

* Fix a typo.

* Fix a typo in test_nft_bulk_transfer.

* Clarify the coinbase coins case in get_minter_did.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2024-09-04 23:45:11 +08:00
RigidityandGitHub 2fd02d53d1 Remove the coin amount from state layer solution (#18500)
* Remove the coin amount from state layer solution

* Remove unused imports
2024-09-04 23:44:51 +08:00
Matt HauffandGitHub c1d9a05ec7 [CHIA-1218] Raise on too much decimal precision in CLI (#18538)
* Raise on too much decimal precision in CLI

* Fix broken test
2024-09-04 01:27:13 +08:00
Matt HauffandGitHub 9ebd6a2d77 [CHIA-1234] Add bech32m options to some key functions (#18540)
Add bech32m options to some key functions
2024-09-04 01:26:59 +08:00
Arvid NorbergandGitHub d69c840352 comment out test code that's not executed (#18547) 2024-09-03 23:22:52 +08:00
Arvid NorbergandGitHub ab8ea7eb3c update long-reorg tests along with the reorg test chains (#18517)
update long-reorg tests along with the reorg test chains, to make the fork point be at a height > 0
2024-09-03 23:21:51 +08:00
Arvid NorbergandGitHub c1a8771825 Bump chia rs 0.13.0 (#18543)
* bump chia_rs to 0.13.0

* update ConsensusConstants. It no longer has the unused fields
2024-09-03 23:19:54 +08:00
Matt HauffandGitHub 2b3999dded [CHIA-1220] Fix confusing amount-related CLI help messages (#18539)
Fix confusing amount-related CLI help messages
2024-08-30 21:39:15 +08:00
Amine KhaldiandGitHub 8129b41473 CHIA-210 Introduce WalletSpendBundle and use it across code related to wallets (#18264)
Introduce WalletSpendBundle and use it across code related to wallets.
2024-08-30 21:36:26 +08:00
yakuhitoandGitHub 169a2d9f85 Fix request_fee_estimates (#18482)
fix request_fee_estimates
2024-08-28 22:27:34 +08:00
Matt HauffandGitHub c11db3f523 [CHIA-1129] Extract coin splitting logic from CLI -> RPC (#18480)
* Extract coin splitting logic from CLI -> RPC

* from typing extensions instead of typing

* Fix CLI test

* fix <3.10 compatibility

* Add tests

* pylint ignore
2024-08-28 22:27:16 +08:00
Florin Chirica 480725e560 Lint. 2024-08-28 04:20:31 +03:00
Florin Chirica d5e114c480 Lint. 2024-08-28 04:13:34 +03:00
Florin Chirica 146e4a35f5 Add cache. 2024-08-28 03:48:24 +03:00
Amine KhaldiandGitHub 9610e2750d CHIA-1198 Add an end to end test for mempool bundle fill rate and the resulting block validation (#18509)
Add an end to end test for mempool bundle fill rate and the resulting block validation.
2024-08-28 00:00:00 +08:00
Amine KhaldiandGitHub 7b18217ff5 CHIA-1214 Simplify Mempool::size() (#18526)
Simplify Mempool::size().
2024-08-27 23:59:37 +08:00
Arvid NorbergandGitHub d5c36e38ac BlockchainInterface cleanups (#18522)
* use ... in BlockInfo protocol

* move prev_block_hash() from BlockchainInterface into BlockRecordsProtocol to transition find_fork_point_in_chain() and lookup_fork_chain() to use the more narrow protocol to lookup the chain

* the WalletBlockchain doesn't need to implement the full BlockchainInterface, but just BlockRecordsProtocol

* remove unused GeneratorBlockCacheInterface and BlockDict

* add unit test for BlockCache
2024-08-27 23:58:19 +08:00
Patrick MaslanaandGitHub 19867e7b18 checkpoint: into main from release/2.4.3 @ 85ca580214 (#18515)
Source hash: 85ca580214
Remaining commits: 0
2024-08-27 01:42:44 +08:00
Almog De PazandGitHub 483ec60771 fix long sync cache (#18514)
* fix long sync cache

* fix reorg test us add batch

* fix add_block and test

* lint

* ignore 0 height
2024-08-26 20:48:39 +08:00
Arvid NorbergandGitHub d1844b6b15 CHIA-1101: update BlockGenerator type (#18508)
change the type of ref_list to List[bytes] instead of List[SerializedProgram]. Also, avoid passing the block generator twice to the worker process for validation
2024-08-23 01:08:27 +08:00
Amine Khaldi 655da5564e Merge commit '85ca5802143f6a7a0ec4e7c17c84e1ed9875770b' into checkpoint/main_from_release_2.4.3_85ca5802143f6a7a0ec4e7c17c84e1ed9875770b 2024-08-22 18:05:11 +01:00
Arvid NorbergandGitHub 700a67344b BlockchainInterface as a protocol (#18486)
* turn BlockchainInterface into a proper Protocol, to allow mypy to check it

* split out a subset of BlockchainInterface into BlockRecordsInterface

* separate BlockCache into the (simple) production use case and the (complex) test use case of mocking a blockchain object
2024-08-23 01:02:43 +08:00
Arvid NorbergandGitHub 387c70ac8e pre_validate_blocks_multiprocessing Warm up the cache once per batch (#18484)
factor out warming up the cache from the inner loop. We don't need to do it for every block
2024-08-22 02:05:18 +08:00