Commit Graph
14659 Commits
Author SHA1 Message Date
Arvid NorbergandGitHub 5ebcd82c58 simplify run_block() (#9962)
* more tests

* only run the generator once, in run_block(). Prior to this patch, we run it once per spent coin + 1
2022-01-26 16:44:30 -08:00
Florin Chirica d80c0c7f6f Fix dowload data bug. 2022-01-26 23:05:08 +02:00
Kyle AltendorfandGitHub 79ea0c0e78 Merge pull request #9925 from Chia-Network/get_roots_return_ids 2022-01-26 15:49:38 -05:00
Kyle AltendorfandGitHub a07d833150 Merge pull request #9928 from Chia-Network/get_keys_value 2022-01-26 15:27:10 -05:00
Kyle AltendorfandGitHub c5848b497b Merge pull request #9926 from Chia-Network/atari_cli_error_handle 2022-01-26 15:17:13 -05:00
Kyle Altendorf a7ddfa5d64 Merge branch 'atari' into get_keys_value 2022-01-26 15:12:28 -05:00
Kyle AltendorfandGitHub 1bb53a0c83 Merge pull request #9927 from Chia-Network/fix_get_ancestors 2022-01-26 15:04:01 -05:00
Chris MarslenderandGitHub e8309ec884 Use native concurrency settings to cancel duplicate in progress jobs rather than waiting for the job to start to cancel (#9963) 2022-01-26 11:20:31 -06:00
Arvid NorbergandGitHub 38e8c8c355 simplify cost calculation. It's already computed in rust (#9931) 2022-01-26 09:07:22 -08:00
Arvid NorbergandGitHub 7acdf2d30f avoid converting puzzle_reveal and solution into python representation, just to convert it back again when running it (#9958) 2022-01-26 09:06:41 -08:00
Arvid NorbergandGitHub 234b31f21a move CoinSpend.hints() to a free function in the wallet. It does not belong in the full node and can only be called on coins whose program is trusted (#9953) 2022-01-26 08:52:41 -08:00
almog b20f2301d6 unused import 2022-01-26 18:45:32 +02:00
Florin Chirica cc32f6a61a Checkpoint. 2022-01-26 18:32:37 +02:00
Matt Hauff 0f5965ad99 Add the ability to stop tracking singletons 2022-01-26 09:04:22 -07:00
almog 4a9b2194f8 print results to cli 2022-01-26 17:38:26 +02:00
Matt Hauff 7723228b98 Catchup merge from atari 2022-01-26 08:17:34 -07:00
Kyle AltendorfandGitHub b579965e36 Merge pull request #9939 from Chia-Network/atari_wallet_atomic_spends 2022-01-26 10:02:44 -05:00
almog a82ffac377 pr fixes 2022-01-26 16:56:33 +02:00
Matt Hauff 8f145afaf8 Lint 2022-01-26 07:12:37 -07:00
Arvid NorbergandGitHub 99eb7d0774 use context manager for get_client() (#9956) 2022-01-26 15:22:32 +02:00
almog 0d331c3af7 use bytes32.from_hexstr 2022-01-26 12:03:33 +02:00
almog a08427ae21 unused import 2022-01-26 12:00:09 +02:00
JeffandGitHub bb1c16cee5 [CLI] chia keys derive [wallet-address | child-key | search] (#9184)
* Added chia keys derive (wallet-address | child-key) to display derived wallet addresses or public keys

* Support for public key (unhardened) derivation

* Fleshed out the search command. Can perform a substring search on wallet addresses, public, and private keys.
Support for deriving private keys

* Default to unhardened derivation. Added --hardened-derivation option. HD paths denote hardened derivation with a 'h' suffix at each index.

* Added --no-progress to reduce output. Exit code indicates search success/failure. Option name cleanup.

* chia keys derive search can now search for multiple terms

* chia keys derive search can be restricted to searching pubkeys|privkeys|addresses|all

* Allow child-key derivation rooted from an arbitrary HD path

* Search derived keys rooted under an arbitrary HD path

* LGTM fixes

* Remove extra master_sk_to_wallet_sk_unhardened definition

* Cleanup and fixed search output

* Cleanup and comments

* Added tests for `chia keys` commands

* Using @pytest_asyncio.fixture to decorate empty_keyring() as suggested in pytest's output.

* Set asyncio-mode to auto to address pytest warning

* See if tests pass without checking exit status

* Added chia init step to tests that direclty invoke the `cli` function

* Explicitly add --root-path option to tests that run the `cli` function.

* Tests fix

* Re-enable checks against exit_code

* More fine tuning to address CI failures

* Changes to address naming and other feedback

* Updated tests
2022-01-25 20:42:16 -08:00
Matt HauffandGitHub ba826da8fd Fix sending CATs with the CLI (#9934)
* Re-add CAT sending to send CLI

* Fix missing memo param

* Address comments by @altendky

* mypy
2022-01-25 12:54:51 -08:00
Florin Chirica 6b357a9ba9 Fix bug. 2022-01-25 22:23:19 +02:00
Matt Hauff 2605b89841 Address comments by @altendky 2022-01-25 12:49:04 -07:00
55cc46a158 comment fix
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-01-25 12:38:22 -07:00
b3663655a4 iterate over values instead of items
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-01-25 12:38:11 -07:00
Arvid NorbergandGitHub 1a84ee8db1 fix mempool issue where it would reject a spend bundle that spends an ephemeral coin with an ASSERT_SECONDS_RELATIVE 0 condition. Such condition is a no-op in the main blockchain validation, so the mempool should also allow it. (#9882) 2022-01-25 11:11:19 -08:00
almog 6de9a56cd2 arg names 2022-01-25 19:41:43 +02:00
almog 19a46d8f42 remove unused import 2022-01-25 19:30:44 +02:00
almog 3f38c23edc remove unused import 2022-01-25 19:30:11 +02:00
almog fe2ab88350 move client close to finally 2022-01-25 19:29:06 +02:00
almog 7807b3e6f7 Merge remote-tracking branch 'origin/atari_cli_error_handle' into atari_cli_error_handle
# Conflicts:
#	chia/data_layer/data_store.py
2022-01-25 19:23:20 +02:00
almog e374efdfad address pr comments 2022-01-25 19:22:26 +02:00
almog 3174395d0d rename 2022-01-25 19:02:01 +02:00
Matt Hauff e03834ca5a Pipe fees through to RPC 2022-01-25 10:00:19 -07:00
f31ebe88b3 Update chia/data_layer/data_store.py
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-01-25 18:57:46 +02:00
almog b13c9b8a5d lint 2022-01-25 18:51:54 +02:00
Matt Hauff 619510befb Add fees to the report spend 2022-01-25 09:50:22 -07:00
almog 0da4a85693 move get_roots to rpc 2022-01-25 18:50:09 +02:00
Florin Chirica 15832c225a First attempt data propagation integration. 2022-01-25 18:44:30 +02:00
Matt Hauff a2c8acce55 Add fees to the update spend 2022-01-25 09:28:00 -07:00
Arvid NorbergandGitHub 5375c1a0af [v2] remove unused counter column in hint table (for v2 schema) (#9778)
* remove unused counter column in hint table (for v2 schema)

* the new db file is expected to be empty. fail if any tables already exist
2022-01-25 07:45:54 -08:00
Earle LoweandGitHub d7cd3fe2cb run block tool updates (#9807)
* run block tool updates

* pylint fixes

* Add tests

* Update workflows for new tests

* Updates based on comments
2022-01-25 07:44:13 -08:00
fe8a3f7aca Update Dependencies for python 3.10. Part 1 of many (#9808)
* Update initial Dependencies

try to get python 3.10 ready.

* final changes

* Update setup.py

* Revert Click

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Update setup.py

* Update setup.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-01-25 07:43:01 -08:00
Gene HoffmanandGitHub 3a4670c9d0 isort consensus for fun and profit! (#9834) 2022-01-25 07:42:19 -08:00
Arvid NorbergandGitHub 8f83ba79bb remove one magic number from weight_proof (#9929) 2022-01-25 07:39:38 -08:00
dustinfaceandGitHub eecc7cd1cd plotting: Move show_memo out of PlotManager (#9932)
This flag is only used by the `chia plots check` command.
2022-01-25 07:37:39 -08:00
almog 6badffe6f6 let rpc client catch the errors 2022-01-25 14:46:45 +02:00