Commit Graph
14659 Commits
Author SHA1 Message Date
Amine KhaldiandGitHub d24b79b569 Initial iteration of the chia wallet did set_name command. (#11334) 2022-05-03 09:51:53 -07:00
Amine KhaldiandGitHub 24d317ae70 DID set wallet name RPC API: Ensure that the wallet type is a DID wallet before proceeding. (#11391) 2022-05-03 09:51:01 -07:00
Florin ChiricaandGitHub 7f02df9835 Get streamable up-to-date to main. 2022-05-03 19:20:14 +03:00
d00d045d9c farmer|rpc|tests: Implement paginated harvester plot endpoints (#11365)
* farmer|rpc|tests: Implement paginated harvester plot endpoints

* Simplify filtering

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

* Let the API handle the exceptions

* Simplify the other filtering too

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

* Simplify count assertions

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

* Refactor `is_filter_match` to `plot_matches_filter`

And just convert to `Plot` in tests.

* Move `chia.util.misc.KeyValue` to `chia.rpc.farmer_rpc_api.FilterItem`

* Rename `peer_id` to `node_id` to be match `get_harvesters_{summary}`

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-05-03 09:17:05 -07:00
Florin Chirica 84e119ecb9 Include node-hash into file name. 2022-05-03 19:00:07 +03:00
Sebastjan 7d02c47688 rpc fix 2022-05-03 17:38:14 +02:00
Sebastjan e12332f59a generating nfts 2022-05-03 17:34:18 +02:00
Arvid NorbergandGitHub 340e26e154 simplify merkle set (#11416)
* _make_middle doesn't need to be a member function

* add some unit tests
2022-05-03 07:49:29 -07:00
dustinfaceandGitHub 7ed610bc84 test: Give setup_farmer and setup_harvester a separate chia root (#11408)
* test: Give `setup_farmer` and `setup_harvester` a separate chia root

* test: Wait for `last_sync_time` in `get_harvesters_{summary}`

To make sure the first sync from the harvester to the farmer is done 
before we check plot counts.
2022-05-02 19:32:37 -07:00
Kyle Altendorf 54695308ee Merge branch 'atari' into datalayer-sim-merge_atari_09af9e99932fceade7fcdcc96ad9d6259b9d2cbb_1.3.4 2022-05-02 19:22:29 -04:00
Kyle AltendorfandGitHub 09af9e9993 Merge pull request #11398 from Chia-Network/atari-merge_datalayer_sim_779e5fd690cb6bcd3936b348708ea72a6fa236b4 2022-05-02 16:20:23 -07:00
Zachary BrownandGitHub 3767fed513 update plotters installation to include an apt update before the apt install (#11400) 2022-05-02 15:56:49 -07:00
wjblankeandGitHub 8905dc69ac make sure we set the syncto height correctly when we roll back instea… (#11389)
* make sure we set the syncto height correctly when we roll back instead of noop

* don't error out if height is -1 on rollback
2022-05-02 15:55:45 -07:00
Mariano Sorgenteandwallentx aeb5629a60 Fix issue with missing coins (#11338)
* raise error when request fails

* Gather when cancelling sync

* Increase timeout

* Increase timeout even more
2022-05-02 17:14:38 -05:00
Kyle Altendorf c56ef66aaa Merge branch 'datalayer-sim' into atari-merge_datalayer_sim_779e5fd690cb6bcd3936b348708ea72a6fa236b4 2022-05-02 16:51:54 -04:00
Kyle AltendorfandGitHub 471a72ecda Merge pull request #11229 from Chia-Network/atari-merge_main_d154105a6b35f94649f15bca4e3fb8a11a39e70e
Atari merge main d154105a6b
2022-05-02 13:46:39 -07:00
Mariano SorgenteandGitHub 6fe7116730 Fix race condition, blockchain can change before acquiring the lock (#11324) 2022-05-02 13:02:38 -07:00
dustinfaceandGitHub e9e536925c farmer|rpc: Add plot_count to get_pool_state RPC endpoint (#11364)
* farmer|rpc: Add `plot_count` to `get_pool_state` RPC endpoint

* Test `plot_count` of `get_pool_state` farmer RPC endpoint
2022-05-02 13:02:00 -07:00
Kyle AltendorfandGitHub 619c539e2a Corect install.sh usage short options list (#11387) 2022-05-02 13:01:29 -07:00
Kyle AltendorfandGitHub d7f39e48c0 Add Windows to wheel check matrix (#11388) 2022-05-02 13:01:08 -07:00
Earle Lowe 707975e3c7 Update GUI to 1.3.4 2022-05-02 11:17:28 -07:00
William Blanke df850dbd6b revert bls to 1.0.9 until windows threading issues are resolved 2022-05-02 10:34:09 -07:00
Sebastjan b1fa967f9b almost generates a new nft 2022-05-02 19:08:51 +02:00
Florin Chirica e81aa13300 Handle delta missing in duplicate hashes. 2022-05-02 18:16:55 +03:00
Kyle AltendorfandGitHub de0b9f04a9 Merge pull request #11319 from Chia-Network/fc.atari_startup_fix 2022-05-02 04:59:10 -07:00
Florin ChiricaandGitHub 36ee9aef0d Import time. 2022-05-02 12:52:03 +03:00
0418e7cfa4 Update chia/data_layer/data_layer.py
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-05-02 12:44:38 +03:00
30adb1b384 Add nft_get_nft_info API (#11351)
* Add nft_get_nft_info API

* Refine NFT uncurry code

* Resolve comments

* Resolve comments

Co-authored-by: ytx1991 <t.yu@chia.net>
2022-04-29 22:30:44 -07:00
Kyle AltendorfandGitHub 795f199597 Correct naming of Windows installer artifacts (the GitHub Actions ones) (#11368)
The wrong artifact was renamed in https://github.com/Chia-Network/chia-blockchain/pull/11096.  This corrects that.
2022-04-29 18:36:05 -07:00
dustinfaceandGitHub 984c442b5e util: Implement Paginator class as interface to access a list by pages (#11247)
* util: Implement `Paginator` class as interface to access a list by pages

* Be less restrictive about page sizes and refactor tests

* Make the pages based of 0 instead of 1 and some more test refactoring

* More tests

* Adjust workflows after rebase

* Introduce `Paginator.create`

* `<=` instead of `- 1`
2022-04-29 18:35:47 -07:00
Kyle AltendorfandGitHub fd9ff115e3 tidy installer building (#11077)
* tidy installer building

* -d

* fix rpm build

* try for windows

* Install.ps1 -d

* move the install.ps1 call out to the workflow

* Update build_windows.ps1

* Update build_windows.ps1

* debug non-editable install on windows

* platlib and purelib in pyinstaller pathex

* Revert "debug non-editable install on windows"

This reverts commit 7c04168969.

* Revert "platlib and purelib in pyinstaller pathex"

This reverts commit c5c5cdcd81.

* debug

* debug not-editable

* Revert "debug not-editable"

This reverts commit d4373d8e82.

* a bit more similar

* git -C

* find dlls in site-packages?

* oops

* Revert "debug"

This reverts commit 88090f689f.

* consistently name installer github actions artifact zips

* leave SCM_VERSION here

* Update build-windows-installer.yml
2022-04-29 18:34:48 -07:00
dustinfaceandGitHub 387abc3d8e farmer|rpc: Some changes to get_harvesters{_summary} RPC endpoints (#11342)
* farmer|rpc: Always add `last_sync_time` in `Receiver.to_dict`

This changes the resonse of `get_harvesters` and
`get_harvesters_summary` to always include that field with value
`None`/`null` if the receiver is not yet synced.

* plot_sync: Add sync state to dict in `Receiver.to_dict`

* Add `total_plot_size` to `Receiver.to_dict`

* Refactor sync object assertions

* Access `_current_sync` directly

* Generate `syncing` data outside
2022-04-29 18:34:14 -07:00
Kyle AltendorfandGitHub 0c08803ddf update pre-commit mypy to 0.950 (#11360) 2022-04-29 18:33:51 -07:00
Justin EnglandandGitHub 518bc3966d adding workflow for checking for conflicts (#11370)
* adding workflow for checking for conflicts

* proper version number

* proper version number syntax?

* not sure tbh

* trying 2.x

* using newly created labels

* adding static 2.0.0 version

* update based on feedback

* removing label removal

* merge_conflict
2022-04-29 19:33:08 -06:00
Amine KhaldiandGitHub ad9c3be74b Initial iteration of the chia wallet did create command. (#11237) 2022-04-29 18:31:28 -07:00
Kyle AltendorfandGitHub 779e5fd690 Merge pull request #10568 from Chia-Network/datalayer-sim-configurable_request_size_limit 2022-04-29 14:35:52 -07:00
Kyle AltendorfandGitHub 9570688fc2 Merge pull request #11369 from Chia-Network/atari-another_ci_fix 2022-04-29 11:36:11 -07:00
Amine KhaldiandGitHub 455476dc04 * Add fees support to DID wallet creation RPC client. (#11363) 2022-04-29 11:02:26 -07:00
Chris MarslenderandKyle Altendorf a17e6a1b30 Mark workspace safe for arm installers (#11339) 2022-04-29 13:28:25 -04:00
Kyle Altendorf 255c4feac3 Add wallet_id as derivation_paths primary key with puzzle_hash 2022-04-29 13:24:13 -04:00
Arvid NorbergandGitHub d3f2ae367d remove unused functions on MerkleSet (#11362) 2022-04-29 08:17:37 -07:00
270c69eb5d plot_sync: Introduce receiver.Sync (#11267)
* plot_sync: Introduce `receiver.Sync`

* Use `dataclasses.replace`

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

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-04-29 08:16:39 -07:00
Matt Hauff 9592915af3 Add some wallet functions to the NFT wallet 2022-04-29 07:32:33 -07:00
Kyle AltendorfandGitHub 649a79c931 Merge branch 'datalayer-sim' into datalayer-sim-configurable_request_size_limit 2022-04-29 06:05:52 -07:00
dustinfaceandGitHub b693aeb407 farmer|rpc: Introduce get_harvesters_summary RPC endpoint (#11245) 2022-04-28 19:36:21 -07:00
Arvid NorbergandGitHub 3b4cbd42ce lookup coins in large batches (#11328)
* lookup coins in large batches, rather than one at a time, in block_body_validation

* make get_coin_records use the cache. and make the blockchain change tracking also use the new batch lookup

* make building the sql query a bit more elegant

* fix assert

* fix test_blockchain assert tests

* add type annotation

* await aiosqlite.Cursor.execute() immediately
2022-04-28 19:34:43 -07:00
6808d92243 cmds: Adjust stop daemon output (#11343)
* cmds: Adjust stop daemon output

Stopping the daemon without this patch prints:

```
daemon: {'ack': True, 'command': 'exit', 'data': {'success': True}, 
'destination': 'client', 'origin': 'daemon', 'request_id': 'some 
request_id hash here'}
```

Stopping the daemon with this patch prints: 

```
Daemon stopped
```

and if it fails:

```
Stop daemon failed {'ack': True, 'command': 'exit', 'data': {'success': 
True}, 
'destination': 'client', 'origin': 'daemon', 'request_id': 'some 
request_id hash here'}
```

* Simplify check

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

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-04-28 19:33:53 -07:00
Sebastjan TrepcaandGitHub b39912a932 Merge pull request #11355 from trepca/main_did_ann_fix
Main merge into main_dids
2022-04-28 20:31:12 +02:00
Sebastjan 04c1c26040 compiled updated clvm sha256 2022-04-28 19:41:40 +02:00
Matt Hauff e1b0cade35 Create a metadata layer driver 2022-04-28 10:14:17 -07:00