Commit Graph
9662 Commits
Author SHA1 Message Date
Izumi HoshinoandGitHub a2b6a9b5f3 Cmj.bladebit (#11187)
* Making source code cleaner

* Cleaned up `install_plotter.py`

* Now `$CHIA_ROOT/plotters/bladebit` is searched first then bundled bladebit

* Fixed a lint error

* WIP: Implement bladebit update/checkout feature

* Enable to specify git branch/tag/commit on bladebit installation

* Modify arguments display order

* Added `chia plotters version` command

* Fixed lint errors

* Fixed lint error 2

* Implemented `chia plotters bladebit2` and handling for its options

* Fixed typo

* Fixed a lint error

* Added comment

* Added missing plotter arguments

* Fixed LGTM warning

* Fixed wrong typing

* Fixed a lint error

* Fixed an issue where `None` was evaluated as an empty string

* Support bladebit2 plotting from web request

* Updated response of `get_plotters` API for upcoming `bladebit2`

* Fixed bladebit2 argument handling

* Modified progress dict

* Added --no-cpu-affinity option to bladebit1

* Fixed a minor error

* Fixed an error where `chia plotters version` failed

* Fixed an issue where building bladebit2 failed

* Fixed an issue where bladebit2 stopped working if `--cache` option was set

* Updated branch for bladebit2

* Fixed an issue where plotting with madmax/bladebit failed for Python < 3.8 on Windows

* Now `chia plotters install madmax|bladebit2` should work on RedHat like OSes

* Fixed a wrong yum package name

* Added yum packages required for Bladebit2

* Changed the way to update bladebit

* Implemented option handling for madmax as well as bladebit

* Fixed a lint error

* Fixed a minor issue

* Fixed LGTM warning

* Applied changes for bladebit 2.0.0-alpha-2

* Fixed a lint error

* Trying to fix windows pre-commit error

* Fixed isort error
2022-09-23 19:42:37 -05:00
dustinfaceandGitHub 77932fcc11 util: Refactor select_port to not load the config (#13514)
* util: Refactor `select_port` to not load the config

* Fix `prefer_ipv6` config lookup

* Use `str2bool`
2022-09-23 17:47:26 -05:00
Kyle AltendorfandGitHub a72edd486d minimal api switch to get_type_hints() (#13507) 2022-09-23 17:33:11 -05:00
Kyle AltendorfandGitHub 682b39ab56 Update test_data_rpc.py (#13506)
https://github.com/Chia-Network/chia-blockchain/actions/runs/3105624081/jobs/5031501276#step:16:1151
```python-traceback
____________________________ test_get_owned_stores _____________________________
[gw0] darwin -- Python 3.9.14 /Users/runner/work/chia-blockchain/chia-blockchain/venv/bin/python
tests/core/data_layer/test_data_rpc.py:609: in test_get_owned_stores
    await time_out_assert(2, check_mempool_spend_count, True, full_node_api, 1)
E   AssertionError: Timed assertion timed out after 2 seconds: expected True, got False
```
2022-09-23 17:32:55 -05:00
Kyle AltendorfandGitHub 6788bdd0ff increase datalayer test timeout to 40 minutes (#13505) 2022-09-23 17:32:32 -05:00
William AllenandGitHub 3023daf435 Changing conditional of start-release (#13501) 2022-09-23 17:31:28 -05:00
dustinfaceandGitHub 0df4d8cbe4 setup|plotting: chiapos==1.0.11 + drop invalid cache entries (#13502)
* Bump `chiapos` to `1.0.11`

* Drop invalid cache entries
2022-09-23 17:30:30 -05:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
d0cde011eb Bump parse-url and lerna in /build_scripts/npm_linux (#13497)
Bumps [parse-url](https://github.com/IonicaBizau/parse-url) to 8.1.0 and updates ancestor dependency [lerna](https://github.com/lerna/lerna/tree/HEAD/core/lerna). These dependencies need to be updated together.


Updates `parse-url` from 7.0.2 to 8.1.0
- [Release notes](https://github.com/IonicaBizau/parse-url/releases)
- [Commits](https://github.com/IonicaBizau/parse-url/compare/7.0.2...8.1.0)

Updates `lerna` from 5.4.2 to 5.5.2
- [Release notes](https://github.com/lerna/lerna/releases)
- [Changelog](https://github.com/lerna/lerna/blob/main/core/lerna/CHANGELOG.md)
- [Commits](https://github.com/lerna/lerna/commits/v5.5.2/core/lerna)

---
updated-dependencies:
- dependency-name: parse-url
  dependency-type: indirect
- dependency-name: lerna
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-23 17:22:54 -05:00
dustinfaceandGitHub 40538fd942 mypy: Fix some asyncio.Task related ignores (#13487) 2022-09-23 17:19:36 -05:00
Kyle AltendorfandGitHub 89c9242618 Add __tracebackhide__ to time_out_assert_not_none() (#13481) 2022-09-23 17:19:15 -05:00
Kyle AltendorfandGitHub 0766914d7a remove --enable-data-server from chia configure cli (#13442) 2022-09-23 17:18:23 -05:00
Kyle AltendorfandGitHub 05ff006960 Make IP section in connections table 1 character wider (#13180)
* Make IP section in connections table 1 character wider

Note how the table spacing is one character short of handling a full `(8 * 4) + 7` characters for an IPv6 address.

```
$ chia wallet show
Wallet height: 0
Sync status: Not synced
 
Connections:
Type      IP                                     Ports       NodeID      Last Connect      MiB Up|Dwn
FULL_NODE 2803:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:573d  8444/8444  353e724c... Aug 25 23:00:09      0.1|4.6    
                                                 -Height: No Info    -Hash: No Info
FULL_NODE 66.xxx.xx.161                           8444/8444  0582d93f... Aug 25 23:00:12      0.0|0.0    
                                                 -Height: No Info    -Hash: No Info
FULL_NODE 127.0.0.1                               8444/8444  ea10c38b... Aug 25 23:00:12      0.0|0.0    
                                                 -Height: No Info    -Hash: No Info    -Trusted: True
```

* more 1 characters
2022-09-23 17:16:12 -05:00
Kyle AltendorfandGitHub 1111fea7dd define FullNode attributes in .__init__() (#12447)
* define `FullNode` attributes in `.__init__()`

* cleanup

* cleanup

* fixup

* even more, and less hasattr

* Remove now redundant hints

* Update full_node.py
2022-09-23 17:15:46 -05:00
Kyle AltendorfandGitHub 199d989352 Avoid the auto-naming mess by saying more about the coverage job in its name (#13492)
```
Coverage (🐧, ubuntu, Ubuntu, ubuntu-latest, 3.9, 3.9, 3.9, 3.9, 3.9)
```
to
```
🐧 Coverage 3.9
```
2022-09-21 22:50:40 -05:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
cdc1797448 Bump got and electron-builder in /build_scripts/npm_macos (#13469)
Bumps [got](https://github.com/sindresorhus/got) and [electron-builder](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-builder). These dependencies needed to be updated together.

Removes `got`

Updates `electron-builder` from 23.3.3 to 23.5.1
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/commits/v23.5.1/packages/electron-builder)

---
updated-dependencies:
- dependency-name: got
  dependency-type: indirect
- dependency-name: electron-builder
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-21 22:50:13 -05:00
Almog De PazandGitHub 39bdffa547 handle errors during shutdown (#12604)
* remove redundant var
dont throw to "Errors" in shutdown
check for missing service name

* typo's
2022-09-21 22:49:31 -05:00
Kyle AltendorfandGitHub 1dbf575a3e RpcApiProtocol and RpcServiceProtocol (#11522)
* provide a skeleton hint protocol for rpc apis

* more

* more self.custom_get_connections = None

* fix RpcApiProtocol.service hinting

* catch up with RpcApiProtocol._state_changed()

* FullNode.server is now non-optional.  'ish

* drop another todo

* custom_get_connections -> get_connections

* just make get_connections() a mandatory method with a helper provided

* lots

* try again

* ._start_with_fingerprint()

* fill out the Service generic parameter in start scripts

* ... instead of pass

* add docstrings to the protocols

* remove no longer needed hasattr/not None checks

* remove outdated comment

* refactor Harvester._is_shutdown to ._shut_down
2022-09-21 22:49:01 -05:00
William AllenandGitHub 357075235a Wallentx/prerelease (#13460)
* Adding workflows to support prerelease

Signed-off-by: wallentx <william.allentx@gmail.com>

* Update installer-version.py

Signed-off-by: wallentx <william.allentx@gmail.com>

* using gh cli to upload release artifact

Signed-off-by: wallentx <william.allentx@gmail.com>

* Fixing whitespace

* Adding gh cli workflow uploads

* Removing CLI artifact upload to release page

* Adding separate release artifact upload for Windows

* Fixing windows installer envar

* Moving torrent release upload step

* Adding needed env for artifact upload

* Removing windows installer conditional for installing AWS CLI

Signed-off-by: wallentx <william.allentx@gmail.com>
1.6.1-a1
2022-09-21 14:11:11 -05:00
Matt HauffandGitHub 736b83a933 On chain wallet notifications (#13261)
* initial design

* simplify

* curry amount

* add test for notficiation content

* Add some anti-spam to config

* remove comment function

* flake8

* mypy

* shatree

* add_rpcs

* isort

* lgtm

* isort

* golf a bit

* bad merge?

* add sorting and pagination

* Remove MSG_HASH from clvm

* black

* Decrease spam limit

* Add CLI and minor fix

* add newline
2022-09-21 00:53:31 -05:00
William AllenandGitHub 8ea660d493 Merge pull request #13486 from Chia-Network/checkpoint/main_from_release_1.6.0_bf4759be503bf46c997b41e39a3c22a53316e404
checkpoint: into main from release/1.6.0  @ bf4759be50
2022-09-20 16:54:18 -05:00
Kyle Altendorf 359c5b008c Merge commit 'bf4759be503bf46c997b41e39a3c22a53316e404' into checkpoint/main_from_release_1.6.0_bf4759be503bf46c997b41e39a3c22a53316e404 2022-09-20 17:15:51 -04:00
William AllenandGitHub bf4759be50 Update CHANGELOG.md (#13482)
* Update CHANGELOG.md

1.6.0

* Fixing whitespace

* Revert "Fixing whitespace"

This reverts commit 12aecf1c94.

* Fixing whitespace, and not committing GUI changes
1.6.0
2022-09-20 13:45:22 -05:00
Izumi HoshinoandGitHub 190f8e1be2 Suppress debug log (#13476)
* Suppress debug log

* Delete the lines
2022-09-19 20:20:16 -05:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
564782a76d Bump got and electron-builder in /build_scripts/npm_windows (#13470)
Bumps [got](https://github.com/sindresorhus/got) and [electron-builder](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-builder). These dependencies needed to be updated together.

Removes `got`

Updates `electron-builder` from 23.3.3 to 23.5.1
- [Release notes](https://github.com/electron-userland/electron-builder/releases)
- [Changelog](https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/CHANGELOG.md)
- [Commits](https://github.com/electron-userland/electron-builder/commits/v23.5.1/packages/electron-builder)

---
updated-dependencies:
- dependency-name: got
  dependency-type: indirect
- dependency-name: electron-builder
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-16 18:13:47 -05:00
Kyle AltendorfandGitHub fbe8c9d8e6 Revert "astroid!=2.12.6, !=2.12.7 (#13338)" (#13342)
This reverts commit 4fecc3f6c1.
2022-09-16 17:56:31 -05:00
Kyle AltendorfandGitHub accf6fd824 separate process global setup for daemon (#13400) 2022-09-16 17:49:51 -05:00
Almog De PazandGitHub e8c11d74da up synced timout to 20 on node/wallet setup (#13425) 2022-09-16 16:33:32 -05:00
Kyle AltendorfandGitHub b9e6fd577e Remove kwargs from Service.start() (#12294) 2022-09-16 16:22:53 -05:00
Kyle AltendorfandGitHub 6ba2922ce1 less cast() in keychain server (#13465) 2022-09-16 16:22:21 -05:00
dustinfaceandGitHub 60908420b6 plot_sync: Change log level to INFO in Receiver.reset (#13463)
It's not necessarily an error, could be just a harvester restart.
2022-09-16 16:21:51 -05:00
dustinfaceandGitHub 37ae10535e cmds: Remove the beta program link from the warning (#13447) 2022-09-16 16:21:19 -05:00
dustinfaceandGitHub 47ea161330 plotters: Only produce beta logs if beta: true, not if it just exists (#13445) 2022-09-16 16:20:54 -05:00
Kyle AltendorfandGitHub bb7a692580 remove uses of cast() in chia.daemon.server (#13439) 2022-09-16 16:20:15 -05:00
Kyle AltendorfandGitHub d589aa4a48 Correct /get_routes and /healthz to return a boolean for success (#13433) 2022-09-16 16:15:08 -05:00
dustinfaceandGitHub 82e729a97d pools: Make PoolWallet a dataclass (#13426)
* Drop unused `PoolWallet.singleton_list` definition

* Make `PoolWallet` a `dataclass`

* Drop the `ignore`, use `cast(PoolWallet, None)`
2022-09-16 16:01:47 -05:00
Kyle AltendorfandGitHub de72a56e1a farm fewer blocks for wallet offer tests (#13413)
* farm fewer blocks for wallet offer tests

* black

* more explicit about balances

* remove unused imports
2022-09-16 16:01:18 -05:00
0e4a638a70 Heap profiler (#13399)
* Add heap profiler (enabled via config)

* Update chia/util/task_timing.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

* unify name of memory profiler (not heap profiler)

* add timestamp to memory profile output directory

* Update chia/util/memory_profiler.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

* Update chia/util/memory_profiler.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

* Update chia/util/memory_profiler.py

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2022-09-16 15:58:32 -05:00
Kyle AltendorfandGitHub ed78e9ffbf make setup.py more normal, except in our exceptional case (#13214) 2022-09-16 15:58:11 -05:00
a9cce0f6e0 add final coverage handling (#11778)
* add final coverage handling

* switch to development coverage

* correct url

* only run one directory for now

* only 3.10

* delete windows data for now

* drop the 35% failure point

* recover full test matrix

* Use regular coverage

* Update test.yml

* put coverage reporting into an artifact

* oops

* oopsy

* pytest-cov

* maybe

* maybe help out flakes

* farm the spend bundle...

* some more

* more funds for the did test?

* more...

* report chia/ and tests/ separately

* job_timeout = 45 for core

* tidy and disable diff-cover

* remove job_timeout = 45

* --rcfile=.coveragerc

* Update .github/workflows/test.yml

* revert time and blocks

* assert spend is in mempool, lower times and block count

* remove sleep

* lint

* up timeout

* cat test - farm blocks until spend is included

* add spend check for nft endpoints

* fix nft endpoint test

* remove unused code

* 4

Co-authored-by: almog <almogdepaz@gmail.com>
2022-09-16 14:36:37 -05:00
Kyle AltendorfandGitHub cf8fcf961e zstd==1.5.2.6 for wheels on PyPI (#11701)
* zstd==1.5.2.5 for wheels on PyPI

* Update setup.py
2022-09-16 14:34:31 -05:00
dustinfaceandGitHub fe6358bd65 util: Remove the assigned label if a key gets removed (#13461) 2022-09-15 20:17:31 -05:00
Arvid NorbergandGitHub e4df3f9bf4 make a WalletProtocol, defining the shared API of all wallets (#13437)
* make a WalletProtocol, defining the shared API of all wallets and fix type checking

* add protocol check for DataLayerWallet. remove outdated comment
2022-09-15 20:16:01 -05:00
William AllenandGitHub 0ea387c209 Merge pull request #13455 from Chia-Network/checkpoint/main_from_release_1.6.0_96dfdfdd044f0c5c72252d6a23884b9871239703
checkpoint: into main from release/1.6.0  @ 96dfdfdd04
2022-09-15 05:23:38 -05:00
Amine Khaldi a822c21469 Merge commit '96dfdfdd044f0c5c72252d6a23884b9871239703' into checkpoint/main_from_release_1.6.0_96dfdfdd044f0c5c72252d6a23884b9871239703 2022-09-14 21:53:45 +01:00
Kyle AltendorfandGitHub 96dfdfdd04 fix unique error after cancelling offer (#13454)
* fix unique error after cancelling offer

* remove unwanted commented test

* add back the original

* tidy tests
2022-09-14 15:52:27 -05:00
dustinfaceandGitHub 837a4798f6 daemon: Implement system metrics logger based on beta config (#12491) 2022-09-14 12:12:24 -05:00
746b1c25f0 Add running_services command to list all running services (#13298)
* Extend `is_running` command to support checking multiple/all services

* Strip whitespace around service names.
Added tests for is_running()

* mypy

* Added `running_services` command to list all running services
Refactored `is_running` in terms of a common `is_service_running` fn
Added tests for the new/updated functions

* mypy

* Update chia/daemon/server.py

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

* Update chia/daemon/server.py

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

* Removed option to specify specific services to query.
Addressed PR feedback.

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-09-14 12:11:20 -05:00
William AllenandGitHub 289b930620 Merge pull request #13450 from Chia-Network/checkpoint/main_from_release_1.6.0_36d44bc2f5b8ef10b0743541478ced85554318f2
checkpoint: into main from release/1.6.0  @ 36d44bc2f5
2022-09-14 12:04:21 -05:00
Amine Khaldi 18ecb326a1 Merge commit '36d44bc2f5b8ef10b0743541478ced85554318f2' into checkpoint/main_from_release_1.6.0_36d44bc2f5b8ef10b0743541478ced85554318f2 2022-09-14 13:07:51 +01:00
Earle LoweandGitHub 467378de03 Do no trigger the pending tx handler in some cases (#13444)
When claiming rewards for a self-pooling plotnft, the end user will see multiple "ALREADY_INCLUDING_TRANSACTION" errors on the console (if using the CLI) and printed in the log (both CLI and GUI)
This is because the action for claiming creates multiple individual transactions, and adding one transaction can cause the other transaction already in the pending list to be resent. 
Adjust the pending tx handler to only get called in cases where there is a tx.spend_bundle present
2022-09-14 00:50:16 -05:00