726 Commits
Author SHA1 Message Date
Izumi Hoshino cfa218dd82 Added --skip-keyring option to chia start xxx command (#17857)
* Added `--skip-keyring` option to `chia start daemon` command

* Fixed a lint error and adopted review comments

* Fixed a lint error

* Fixed a test

* Fixed a test

* Added mocks to test

* Fixed a test

* Removed `bt: BlockTools` from the test case because it seemed to cause config file dead lock

* Removed unused mock method

* Set `parallel=False` to chia/_tests/cmds/config.py

* Set `parallel=False` to chia/_tests/core/util/config.py

* Added missing coverage

* Fixed mypy error
2024-04-17 10:02:42 -07:00
Amine Khaldi ec258d0ce6 Optimized v1 to v2 DB upgrade (#17793)
Optimized v1 to v2 DB upgrade.
2024-03-29 13:41:07 -07:00
Felix Brucker d09b61b72d Pass full version in Handshake (#15679)
* Pass full version in Handshake

* Move chia version conversion into crawler

* Rename to overloaded `chia_short_version` and always return str

* Ensure we extract major.minor.patch from invalid pep440 if available
2024-03-27 10:40:47 -07:00
Kyle Altendorf 18bcc3e561 test installers find plotters main (#17646)
* test that installers find plotters

* maybe correct launching from installers

* handle noisy output

* list dmg contents

* list exe installed contents

* adjust chia path on darwin

* linux as well

* fix

* more prints and some timeouts

* resolve

* undo

* empty

* more output

* install numa

* no madmax working from rpm

* reword

* Update build-linux-installer-rpm.yml
2024-03-20 09:11:11 -07:00
Kyle Altendorf 2eb3633bcb json.dumps(indent=2) (#17714) 2024-03-18 10:26:13 -07:00
Izumi Hoshino 2f3fce5c85 Added chia start daemon (#17704)
* Added `chia start daemon`

* Added a test case

* Fixed lint issues

* Reverted changes in `services_for_groups`

* Fixed coverage issue
2024-03-18 09:43:55 -07:00
Kyle Altendorf 774f5c0493 flake8 ignore E226 (#17700) 2024-03-13 16:40:26 -07:00
Earle Lowe 48e4039e58 Update black to 24.1.1 and update source as needed (#17499)
* Update source to black 24 spec

* update black to 24.1.1

* update pylint to ignore multiple-statements

* update test file

* black updates

* format updates

* Update test_network_protocol_files.py

* Update test_network_protocol_files.py
2024-03-13 11:08:19 -07:00
Amine Khaldi 0c0cda5e9f Merge commit 'f499f9dd67a5e88458b722ebe29f2b809655a748' into checkpoint/main_from_release_2.2.0_f499f9dd67a5e88458b722ebe29f2b809655a748 2024-03-04 15:24:08 +01:00
Florin ChiricaandKyle Altendorf 368fecc17e DL multiple batch updates. (#17414)
* DL multiple batch updates.

* Lint.

* Lint.

* Add RPCs.

* Lint

* Lint

* Lint

* Add test.

* Lint.

* Add publish pending root option.

* Improve test.

* Fix cmd.

* Lint.

* Fix test

* Revert

* Add test.

* More tests.

* Improve test.

* Apply suggestions from code review

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

* Lint.

* Test.

* Latest local root.

* Change publish to submit.

* More submit instead of publish.

* Coverage.

* Lint.

* Improve coverage.

* Lint.

* Lint.

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-02-23 09:56:00 -08:00
Adam KellyandAmine Khaldi cc5a5a9308 Remove unused parameter (#17598)
* Remove unused parameter

* Unroll some test cruft

* ('preserve tuple',)

* isort

* update test

* Update the Wallet RPC Api call in is_transaction_confirmed, and remove the no longer used user_wallet_id param.

---------

Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2024-02-23 09:55:38 -08:00
Kyle Altendorf 1855f99cce cleaner cli output for rpc client fetch errors (#17460)
* cleaner rpc client fetch errors

* remove incorrect json'ing in test and adjust runtime

* init

* drop `use_ssl=` parameter

* more

* more

* Revert "more"

This reverts commit cce36d5012.

* Revert "more"

This reverts commit 318929d5ae.

* again

* tweak

* update existing tests

* undo...

* back-compat

* test no consummption

* tidy
2024-02-23 09:55:07 -08:00
Chris Marslender 1cce93e39f Set unique peer filenames when swapping to/from testnets (#17592)
Set unique peer filenames when swapping to testnet
2024-02-21 13:10:12 -08:00
Arvid Norberg eb543fd888 transition FullBlock and BlockRecord to rust (#17525)
* use rust version of FullBlock and UnfinishedBlock

* use rust type for BlockRecord
2024-02-20 13:11:31 -08:00
Chris Marslender f499f9dd67 Add testnet11 constants to config if missing when configuring to run on testnet (#17568)
* If missing, add testnet11 constants to config file

* Run isort

* Be specific about which parts are missing when updating config

* Run black
2024-02-15 13:15:31 -08:00
Florin ChiricaandKyle Altendorf fa220629ec DL RPC pagination. (#17347)
* DL RPC pagination.

* Lint.

* Lint.

* Add RPCs.

* Lint.

* Lint.

* Add test.

* Lint.

* Add root_hash.

* Coverage.

* Fix bug.

* Update chia/cmds/data.py

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

* Dedupe.

* Lint.

* Add reference dict to test.

* Fix test.

* Fix test.

* Fix test.

* Fix test.

* Lint.

* Fix test

* Lint

* Remove short option.

* Add test.

* Lint.

* Update tests/core/data_layer/test_data_rpc.py

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

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-02-14 11:08:20 -08:00
Earle Lowe 59cbb96c56 use click.Path for make_offer command filename (#17538)
use click.Path for make_offer command
2024-02-10 13:18:52 -08:00
Kyle Altendorf 9ed9abe1d7 allow non-ssl rpc clients (2) (#17510)
* allow non-ssl rpc clients (2)

* add missing tests

* another test
2024-02-07 12:28:37 -08:00
Amine Khaldi f8777ed559 Merge commit '63417e765aaff91fb30485577f86a4af55aba029' into checkpoint/main_from_release_2.2.0_63417e765aaff91fb30485577f86a4af55aba029 2024-02-05 18:47:03 +01:00
Earle LoweandKyle Altendorf 63417e765a Add support for generating and verifying DataLayer Proofs of Inclusions (#16845)
* initial implementaion of get_proof and verify_proof for datalayer

* Add wallet RPC and stop using offer blobs

* Don't require DL wallet to validate DL proof

* Convert to dl_verify_proof to free function

* More updates to DL proofs get/verify

* More updates to DL proofs get/verify

* More updates to DL proofs get/verify

* remove some unused verification functions

* oops deleted some important things

* fix type

* Add tests for DL proofs

* WIP using streamable classes for RPC

* Tests pass with new serializable classes

* use clvm tree hash calls instead of magic numbers and std_hash

* expanded tests to include more ways to call the same thing

* minor tests updates from feedback

* add in CLI tests

* Add separate create_multiple_keys_option

* Add helper and fixup key option

* Update tests/core/data_layer/test_data_rpc.py

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

* Add layer of indirection for the proof response

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-02-05 08:35:28 -08:00
Matt f7ec00c152 Merge remote-tracking branch 'origin/main' into quex.remove_announcement_main 2024-01-23 12:17:31 -08:00
Matt Hauff aac1792192 Port get_notifications RPC to RPC marshaller (#17283)
* Port get_notifications RPC to RPC marshaller

* Fix test (I hate this)

* Don't use string formatting in SQL query

* rename notification member variable

* Missed a couple?

* Suggestion by @altendky (w/ black fix >:( )
2024-01-23 10:05:39 -08:00
Matt 2eb047aafc Merge remote-tracking branch 'origin/main' into quex.remove_announcement_main 2024-01-22 10:11:25 -08:00
Matt 9a44ca926d Merge commit 'f96aaee604072b83c9aae7bcb03a1e3856f4b4cc' into HEAD 2024-01-22 09:59:43 -08:00
Matt Hauff c0f7fd3e94 Remove duplicate short option from make_offer command (#17376)
Remove duplicate short option
2024-01-22 09:32:52 -08:00
Izumi Hoshino d4ff6ef448 Fixed an issue where chia wallet did transfer command mistreats the type of fee (#15138)
* Fixed an issue where `did_tranfer_did` mistreated the unit of `--fee`

* Fixed test
2024-01-19 11:37:52 -06:00
Chris Marslender 763168167c Update default testnet to testnet11 (#17303) 2024-01-16 18:48:09 -06:00
Arvid Norberg 51808b4ef7 Rust proof-of-space, reward chain and foliage types (#17218)
* use rust type for ProofOfSpace

* use rust types for Foliage

* use rust types for reward chain blocks
2024-01-10 15:42:31 -06:00
RigidityandKyle Altendorf 3e6e08732f Add a few missing type annotations (#17043)
* Add a few missing type annotations

* Update chia/util/struct_stream.py

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

* Update chia/util/keyring_wrapper.py

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

* add `ClassVar` import

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-01-08 08:36:13 -06:00
Matt Hauff 1a33cfdecc Add --override flage to make_offer (#17220) 2024-01-05 12:22:06 -08:00
Florin Chirica a168093c91 Improve input for DL CLI add_missing_files. (#17060) 2023-12-19 12:04:11 -06:00
Kyle Altendorf 2accbd8cd4 remove coverage ignore (#17041) 2023-12-12 09:42:58 -06:00
Geoff Walmsley 219667b6d8 DAO resync (#17029) 2023-12-11 15:12:37 -06:00
Geoff Walmsley ca9a6011ec dao vote amount checks (#16988) 2023-12-08 15:11:18 -06:00
xchdata.io fde036c503 chia show keys --show-mnemonic-seed: Also show farmer private key (#16556) 2023-12-01 10:44:03 -06:00
Kyle Altendorf 3caa0754cc add DBWrapper2.managed() (#16880) 2023-11-22 13:48:01 -06:00
Zachary Brown ddadd8c664 Change -h to -k for --key flag for datalayer get_value cli command (#16843)
Change -h to -k for key flag for get_value cli command
2023-11-16 09:40:17 -07:00
Arvid Norberg 95e5b97557 Use bls from chia rs (#16715)
* replace blspy imports with chia_rs imports for BLS types

* remove blspy-stubs, since we're dropping the blspy dependency. chia_rs has type stubs already
2023-11-07 09:06:52 -08:00
Felix BruckerandKyle Altendorf ef98949a30 Add support for lists of peers in the config (#16376)
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-10-24 12:33:19 -05:00
Kyle Altendorf 90c1441af0 apply pyupgrade --py38-plus --keep-runtime-typing (#14646) 2023-10-24 12:01:23 -05:00
Geoff Walmsley b3650ca4da add NFT, DID, DAO_CAT to wallets denominated in mojos (#16632) 2023-10-24 09:39:39 -05:00
Matt 3bf117a255 Merge remote-tracking branch 'origin/long_lived/vault' into quex.remove_announcement 2023-10-19 09:47:24 -07:00
Matt 41dde97568 Merge remote-tracking branch 'origin/long_lived/vault' into quex.remove_announcement 2023-10-12 13:49:18 -07:00
75af6a98d8 Dao wallet (#16500)
Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>
Co-authored-by: Matthew Howard <m.o.howard97@gmail.com>
Co-authored-by: matt-o-how <48453825+matt-o-how@users.noreply.github.com>
Co-authored-by: Karlkim Suwanmongkol <karlkim@gmail.com>
Co-authored-by: Sebastjan Trepca <trepca@gmail.com>
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-10-11 14:19:12 -05:00
Matt 2afa5ce8fe Remove Announcement class from chia-blockchain 2023-10-11 07:56:20 -07:00
Kyle Altendorf 3d728c2a17 cleanup unused peer config (#14922) 2023-10-10 13:17:48 -05:00
Kyle Altendorf 51d3bf018e Revert "Dao wallet" (#16465) 2023-10-01 11:57:09 -05:00
William Allen ce9713d19e checkpoint: into main from release/2.1.0 @ ee09892f06 (#16462)
Source hash: ee09892f06
Remaining commits: 8
2023-09-30 19:47:04 -05:00
810df50bf6 Dao wallet (#15559)
Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>
Co-authored-by: Geoff Walmsley <geoffwalmsley@gmail.com>
Co-authored-by: Geoff Walmsley <5695735+geoffwalmsley@users.noreply.github.com>
Co-authored-by: Karlkim Suwanmongkol <karlkim@gmail.com>
Co-authored-by: Sebastjan Trepca <trepca@gmail.com>
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2023-09-30 14:24:35 -05:00
Kyle Altendorf ee09892f06 rename chia data add_missing_files -f/--foldername to -d/--directory (#16383) 2023-09-25 19:17:41 -05:00