Commit Graph
14659 Commits
Author SHA1 Message Date
Florin Chirica 358f35a826 Add test for upload files method. 2022-05-05 20:05:03 +03:00
Florin Chirica 3e3b520074 Upload files. 2022-05-05 19:39:18 +03:00
artyandGitHub 60f372fcaf Bump clvm_tools_rs version for clvm stepper and add a test (#11418)
* Bump clvm_tools_rs version for clvm stepper and add a test

* lint

* lint

* flake8

* lint

* lint?

* formatting

* More formatting

* More formatting

* hopefully final lint

* A bit more formal python style for the clvm test

* Add typing imports
2022-05-05 09:14:23 -07:00
Amine KhaldiandGitHub 9edda6503e Add RPC client support for the create_new_wallet API. (#11430) 2022-05-05 09:12:53 -07:00
Florin Chirica dcbceea2d3 Remove outdated validated_wallet_generation. 2022-05-05 18:46:45 +03:00
dustinfaceandGitHub d4c2f0c14a tests: Improve test_wallet_rpc.py (#11148)
* Move wallet RPC test setup into a fixture

* Fix `mypy` issues

* Enable  `isort`

* Move `tx_in_mempool` out and reuse it instead of `tx_in_mempool_2`

* Introduce `get_confirmed_balance` and `get_unconfirmed_balance`

* Use `pytest.raises`

* Only test with an untrusted full node

* Introduce `generate_funds`

* Drop sleeps and create less blocks

* Recover trusted/untrusted sync parameterization
2022-05-05 08:22:02 -07:00
Mariano SorgenteandGitHub e0df18f85d Ms.hint refactor (#11222)
* Some work on hints

* More cleanup and test_generator_tools

* Change relevant calls

* More refactor and cleanup

* More refactor

* Small fix

* Create wrapper object PeakPostProcessingResult

* Lint and small fix

* Fix a hint bug

* Fix hint update_wallets

* Fix test_full_sync

* pre-commit

* Start with PR review comments

* More efficient iteration

* Remove tx_removals_additions_and_hints

* Revert mozilla ca

* Fix issue with startup
2022-05-05 08:19:57 -07:00
Kyle AltendorfandGitHub cf5113ae87 Remove outdated 3.8 upgrade comment (#11385) 2022-05-05 08:18:36 -07:00
a19f18258d Update CONTRIBUTING.md (#11393)
* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

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

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-05-05 08:17:59 -07:00
Kyle AltendorfandGitHub 34eed9a3bc more isort (#11401) 2022-05-05 08:17:38 -07:00
Zachary BrownandGitHub a1db012b7a Add libgmp-dev to Bladebit installation (#11406) 2022-05-05 08:17:14 -07:00
dustinfaceandGitHub fc64542d50 tests: Use lock_and_load_config in setup_services.py (#11412) 2022-05-05 08:16:51 -07:00
dustinfaceandGitHub 2d0d8e175e test: Missing duplicates tests in test_receiver.py (#11413) 2022-05-05 08:16:33 -07:00
dustinfaceandGitHub 629c303077 cmds: Use the new plot_count of get_pool_state in plotnft cmds (#11414) 2022-05-05 08:16:10 -07:00
Kyle AltendorfandGitHub 2daa524aaf add long_lived/** and release/** to (almost) all workflow push triggers (#11439) 2022-05-05 08:51:36 -06:00
Sebastjan 61bb87f2e5 future proof create_coin in nft state layer 2022-05-05 14:40:52 +02:00
Sebastjan 4df1f4658d clvm compilation fix 2022-05-05 13:30:27 +02:00
Amine Khaldi b69323e40e Reflect the previous commit into workflows. 2022-05-05 11:41:46 +01:00
Amine Khaldi 2566f68db4 Prepare test blocks and plots for NFT wallet tests. 2022-05-05 11:38:48 +01:00
Amine Khaldi bddd7e88a5 Workflows? 2022-05-05 11:31:18 +01:00
Amine Khaldi 694b737ccc Attempt to fix workflows. 2022-05-05 11:23:28 +01:00
Sebastjan 8a32eee2ad workflow files? 2022-05-05 11:26:14 +02:00
Sebastjan 150f2448d6 removed old NFT tests 2022-05-05 11:07:01 +02:00
Sebastjan c470401a11 pre commit hooks passing, tests pass 2022-05-05 10:48:34 +02:00
Sebastjan 297767fdc8 resolved conflicts 2022-05-05 08:56:51 +02:00
ytx1991 9da3cbb154 Fix data hash issue 2022-05-04 14:49:34 -07:00
Earle LoweandGitHub b3881acb9a Merge pull request #11405 from Chia-Network/datalayer-sim-merge_atari_09af9e99932fceade7fcdcc96ad9d6259b9d2cbb_1.3.4
Datalayer sim merge atari 09af9e9993 1.3.4
2022-05-04 12:06:30 -07:00
Florin Chirica ecc56676e6 More logging, write full tree files as well. 2022-05-04 20:45:57 +03:00
Florin Chirica 98e5bdf18f Checkpoint multiple writers. 2022-05-04 20:23:29 +03:00
Sebastjan 523c6766f2 basic rpc api working 2022-05-04 19:04:56 +02:00
Arvid NorbergandGitHub 1b2d119cc3 optimize hash_coin_list() by sorting pure coin_ids, rather than Coins that need to compute its name multiple times during sorting, and also by sorting the actual binary coin names, not hexadecimal strings (#11421) 2022-05-04 07:24:55 -07:00
Arvid NorbergandGitHub bb3550f43b more merkle tree tests (#11424) 2022-05-04 07:24:10 -07:00
dustinfaceandxdustinface 8f7f439202 harvester: Tweak get_plots RPC (#11246) 2022-05-04 10:46:11 +02:00
Sebastjan ee8eda2faa checkpoint 2022-05-04 10:19:07 +02:00
Sebastjan 093b275066 transfer wip 2022-05-04 10:19:07 +02:00
ytx1991andSebastjan 033003786e Resolve comment 2022-05-04 10:19:07 +02:00
ytx1991andSebastjan bcda9a7c15 Implement nft transfer program 2022-05-04 10:19:07 +02:00
06684f96d5 streamable: Enable isort + more mypy (#10539)
* isort: Fix `streamable.py` and `test_streamable.py`

* mypy: Drop `streamable.py` and `test_streamable.py` form exclusion

And fix all the mypy issues.

* Fix `pylint`

* Introduce `ParseFunctionType` and `StreamFunctionType`

* Use `object` instead of `Type[Any]` for `is_type_*` functions

* Some `Any` -> `object`

* Use `typing.overload` for `recurse_jsonify`

* Move some comments

* Drop `Union`, use `Literal` properly

* Explicitly ignore the return of `f_type.parse`

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

* Merge two `recurse_jsonify` overloads

* Typing for the base definition of `recurse_jsonify`

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-05-04 00:10:06 -05:00
dustinfaceandxdustinface e1255c91b2 farmer|gui: Enable paginated plot loading and improved state reporting (#11367)
* farmer: Adjust notifications from the farmer to the UI

- Only send the data for the harvester which actually sent an update
- Notify for each loaded batch during initial loading

* Enable improved farmer/harvester GUI
2022-05-04 02:23:18 +02:00
8363617557 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-04 02:21:46 +02:00
dustinfaceandxdustinface 946d216835 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-04 02:21:05 +02:00
dustinfaceandxdustinface 5482086bd9 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-04 02:20:30 +02:00
dustinfaceandxdustinface 630b401c01 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-05-04 02:20:28 +02:00
dustinfaceandxdustinface 5fd88ce4dd 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-05-04 02:20:27 +02:00
f4d2e77206 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-05-04 02:20:26 +02:00
dustinfaceandxdustinface 351fd1de56 farmer|rpc: Introduce get_harvesters_summary RPC endpoint (#11245) 2022-05-04 02:20:14 +02:00
dustinfaceandGitHub 0d5251c3a7 farmer|gui: Enable paginated plot loading and improved state reporting (#11367)
* farmer: Adjust notifications from the farmer to the UI

- Only send the data for the harvester which actually sent an update
- Notify for each loaded batch during initial loading

* Enable improved farmer/harvester GUI
2022-05-03 15:33:38 -07:00
Kyle AltendorfandGitHub 57a2415ecb make NFTWallet a dataclass (#11139)
* make NFTWallet a dataclass

* isort

* flake8

* mypy

* Optional
2022-05-03 11:00:37 -07:00
Florin Chirica 3f7f8cd211 Checkpoint refactor. 2022-05-03 21:00:19 +03:00
wjblankeandGitHub 0156d3471b readd ping_task as keepalive for daemon (#11356)
* readd ping_task as keepalive for daemon

* raised and lowered logging levels

* flake
2022-05-03 10:36:43 -07:00