Commit Graph
14659 Commits
Author SHA1 Message Date
dustinfaceandGitHub c052317299 isort: Remove all chia.types exceptions and sort the related files (#13961) 2022-11-19 11:18:27 -06:00
neurosis69andGitHub 9f04cd3518 Add simple fix to set farmer response timer for SP: 0 (#13655)
add simple fix to reset timer

Signed-off-by: Thomas Hein <thomashein@gmx.at>

Signed-off-by: Thomas Hein <thomashein@gmx.at>
2022-11-18 19:58:03 -06:00
Jack NelsonandGitHub 5a74cb3581 Fix wallet fingerprint cli tests (#13958) 2022-11-18 18:30:43 -06:00
William AllenandGitHub 7b3502d66d Revert "Add a workflow for scanning python deps" (#13959) 2022-11-18 18:05:51 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
789acbe74f Bump pyinstaller from 5.3 to 5.6.2 (#13793)
Bumps [pyinstaller](https://github.com/pyinstaller/pyinstaller) from 5.3 to 5.6.2.
- [Release notes](https://github.com/pyinstaller/pyinstaller/releases)
- [Changelog](https://github.com/pyinstaller/pyinstaller/blob/develop/doc/CHANGES.rst)
- [Commits](https://github.com/pyinstaller/pyinstaller/compare/v5.3...v5.6.2)

---
updated-dependencies:
- dependency-name: pyinstaller
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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-11-18 11:17:37 -06:00
fb72a2558d Add --fingerprint option to chia keys show (#13909)
* add fingerprint option to keys func

* rename func

* add fingerprint to cli tests

* Update tests/core/cmds/test_keys.py

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

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2022-11-18 10:51:02 -06:00
dustinfaceandGitHub 78e367665b Introduce sync_store.Peak (#13615) 2022-11-18 10:44:13 -06:00
9b1989b014 Enable and fix mypy in server.py (#13579)
* server: Enable and fix `mypy` in `server.py`

* Add a comment about the `Message` hint

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

* Tweak assert message

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

* Make `name` non-optional

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

* Properly reject incoming connections to crawlers

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

* Hint `StreamResponse` and return the existing `WebSocketResonse`

* Raise if `remote` is `None`

* Restore old behaviour: succeed, don't fail for self connection

* Raise `HTTPInternalServerError` if `remote` is `None`

* Cast config values to `int`

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-11-18 10:43:14 -06:00
3635df1d2f Add a workflow for scanning python deps (#13227)
* Add a workflow for scanning python deps

* Removed the requirements.txt file from the commit

* Change to any pull request for running the workflow

* Remove some wording and fix concurrency

* Change python version

* Add a step to pip install requirements.

* Adding skip unresolved when pip installing requirements.txt

* Pip install ignore installed

* Adding a step to update pip

* Fix spacing

* Running each line for the pip install.

* Adding continue-on-error when pip installing

* using skip-unresolved with when monitoring with snyk.

* Remove pip install step and add names to steps

* Removed leading line and set "Cancel-in-progress" for concurrency to true

* Change when the workflow runs to pushes and PRs

* Update .github/workflows/snyk-python-scan.yml

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-11-18 10:42:15 -06:00
dustinfaceandGitHub e0b8165cc5 isort: Remove all chia.full_node exceptions and sort the related files (#13953) 2022-11-18 10:41:45 -06:00
dustinfaceandGitHub 2e2c297a80 util: Remove legacy keyring support (#13398) 2022-11-18 10:33:18 -06:00
Kyle AltendorfandGitHub 22a1d1b1c2 use aws-actions/configure-aws-credentials@v1-node16 to clear warnings (#13950)
https://github.com/aws-actions/configure-aws-credentials/issues/489#issuecomment-1278145876
2022-11-18 03:25:30 -06:00
Kyle AltendorfandGitHub a76336435f pre-commit -> timeout-minutes: 20 (#13949)
https://github.com/Chia-Network/chia-blockchain/actions/runs/3492945647/jobs/5847234861

Found a hung run that had been going for 5 hours.  A quick look suggests 2-6 minutes is normal with an outlier as high as 11 minutes.  But that was a _quick_ look.
2022-11-18 03:25:02 -06:00
dustinfaceandGitHub e1f4fa8d79 isort: Remove all chia.daemon exceptions and sort the related files (#13941) 2022-11-18 01:29:18 -06:00
JeffandGitHub 424f78e0c4 Bump chia-blockchain-gui to dd4d7d031995189711248628f10d85ebd6764c25 (#13945)
Includes:
Remaining fee estimator integrations
Removal of SkyNFT links
Offer Builder royalty amounts when creating an offer for an NFT
Memo field when sending XCH (memos not shown due to backend issue)
Removal of backup.chia.net references
Update to Electron 20.3.5
NFT metadata caching fix for non-UTF8 charsets
Fix for switching between farming/wallet mode
Fix for importing/adding key and including whitespace in key label
Assorted code cleanup
1.7.0-b2
2022-11-17 23:00:22 -06:00
282fe9c6ef Update workflows to use GITHUB_OUTPUT (signed commits) (#13911)
* Update build-windows-installer.yml

Use GITHUB_OUTPUT instead of set-output.

Use PowerShell syntax for PowerShell, Bash Syntax for Bash.

Why?
GitHub is deprecating set-output as per their blog:

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Signed-off-by: wallentx <william.allentx@gmail.com>

* Use GITHUB_OUTPUT in workflows

Use GITHUB_OUTPUT in workflows instead of set-output.

Why?
GitHub is deprecating set-output as per their blog:

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Signed-off-by: wallentx <william.allentx@gmail.com>

* Workflow dispatch added to MacOS and Linux ARM

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

* Fix Tests for Windows

Use PowerShell syntax for Windows, Bash for others.

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

* Use setup-python@v4

Update to resolve the set-output warnings

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

* Fix Tests and Benchmarks for Windows

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

* Update test.yml

Fix missed setup-python@v2

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

* Use Chia setup-python wrapper

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

* Revert "Fix Tests and Benchmarks for Windows"

This reverts commit 4fbc6d354b.

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

* Revert "Fix Tests for Windows"

This reverts commit 5860048344.

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

* Use bash for all OS to get pip cache dir

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

* Fixing windows workflow error

* Replacing instances of Out-File

* Fixing ps1 -> bash

* Fixing path when ps1 -> bash

* Escaping Windows path when using bash

* Escaping Windows path when using bash

Signed-off-by: wallentx <william.allentx@gmail.com>
Co-authored-by: zcomputerwiz <zcomputerwiz@users.noreply.github.com>
2022-11-17 21:44:12 -06:00
c9758cc476 Trigger sync tests for all release types (#13942)
* Trigger sync tests for all release types

* Temporary fix unit test

Co-authored-by: ytx1991 <t.yu@chia.net>
2022-11-17 20:18:56 -06:00
dustinfaceandGitHub d9c97e15e4 isort: Remove all chia.util exceptions and sort the related files (#13939) 2022-11-17 15:32:18 -06:00
dustinfaceandGitHub 977d2e97cd isort: Remove all chia.cmds exceptions and sort the related files (#13940) 2022-11-17 15:32:03 -06:00
Chris MarslenderandGitHub a69146284c Ensure chia-blockchain still opens UI on Linux (#13826) 2022-11-17 13:53:38 -06:00
Kronus91andGitHub cf944f0260 Return minted NFT ID & Allow transfer NFT with NFT ID (#13928) 2022-11-17 13:51:02 -06:00
Arvid NorbergandGitHub 27cbd08229 Factor out member functions of ProofOfSpace to be free functions (#13930) 2022-11-17 13:46:22 -06:00
b6595faa1c CA Cert updates (#13937)
adding ca updates

Co-authored-by: ChiaAutomation <automation@chia.net>
2022-11-17 10:24:49 -06:00
26171c2a7f retryAfter: 5 (24x) for conflict check (#13422)
* retryAfter: 2 for conflict check

* two minutes

* Use 'Chia-Network/actions/label-conflict@main' for conflict check action

Co-authored-by: ChiaMineJP <admin@chiamine.jp>
2022-11-17 03:23:34 -06:00
Almog De PazandGitHub f85bc15d4b setup services refactor (#13905)
* always return service

* adjust setup_simulators_and_wallets

* adjust setup_simulators_and_wallets

* refactor setup_simulators_and_wallets
add setup_simulators_and_wallets_service

* revert unneeded change

* fix broken fixtures

* lint, fix data_rpc init_wallet_and_node

* fix two_wallet_nodes fixture

* fix two_nodes_sim_and_wallets_services fixture

* fix one_wallet_node_and_rpc fixture

* lint
2022-11-16 20:40:03 -06:00
Chris MarslenderandGitHub 966e67e81b Set up commit signing for the mozilla CA updates (#13935) 2022-11-16 20:05:17 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1ceaee8aae Bump typing-extensions from 4.3.0 to 4.4.0 (#13919)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-16 14:02:43 -06:00
Arvid NorbergandGitHub 53a570ebe1 Add option to analyze-chain to validate block signatures (#13917) 2022-11-16 13:59:21 -06:00
dustinfaceandGitHub e24263e21c Reuse outbound_handshake (#13895) 2022-11-16 13:58:40 -06:00
dustinfaceandGitHub 2ff987573d Simplify ChiaServer.close_all_connections (#13916) 2022-11-16 13:57:30 -06:00
5c861db42f Make WSChiaConnection a dataclass (#13906)
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-11-16 13:38:28 -06:00
dustinfaceandGitHub 643b29e636 Drop broken message types logging (#13914)
Seems like the idea was to log an overview of message types for the 
currently active api calls whenever we have multiples of 100 running. 
This currently isn't working at all because `len(message_types) % 100 == 
0` will only trigger if there are 100 different message types in the 
counter (we don't even have that much different messages). A fix would 
be to check `message_types.total() % 100 == 0`. But then, if we hover 
around 100 active messages this will repeatedly trigger logs since we 
decrement for each processed message, im not sure this all makes much 
sense and we anyway log all received message types with `DEBUG` logs so 
i decided to just drop this. If someone thinks we should keep it with 
the fix or has ideas to make this a more reasonable log instead of 
dropping it, let me know :)
2022-11-16 10:44:48 -06:00
Kyle AltendorfandGitHub 373880dc76 catch up test_complex_nft_offer() with return type change (#13926) 2022-11-16 10:41:49 -06:00
Kyle AltendorfandGitHub 69a4fe025d warn_redundant_casts = True (#13922) 2022-11-15 18:52:04 -06:00
Almog De PazandGitHub ac2203eda8 Refactor test utils for import availability outside of repo (#13880)
* refactor for import availability outside of repo

* refactor for import availability outside of repo

* small revert

* newline

* fix imports

* fix pre-commit issues

* types issort, adapt mypy ignore

* redundant imports

* move files from util to simulator

* run pre_commit

* remove setup_nodes/keyring from isort.cfg

* fix asyncio import
2022-11-15 18:51:05 -06:00
Almog De PazandGitHub ce94f85fa3 Don't validate weight proof on log_in (#13775)
* dont validate on log_in

* data integrity
2022-11-15 18:50:07 -06:00
Kyle AltendorfandGitHub fe04df9f68 less pip install and activate for windows build (#13845) 2022-11-15 18:47:24 -06:00
Kyle AltendorfandGitHub a531580868 rework around tx records and offer takes (#13603)
* mixed rework around tx records and offer takes

* more

* wait for wallets

* process_transaction_records() -> process_transactions()

* correct to use new bundles= parameter a couple spots

* .process_transaction_records()

* .process_spend_bundles()
2022-11-15 18:42:45 -06:00
Kyle AltendorfandGitHub 7ae9f8f54b Catch up pre-commit black (#13907)
https://github.com/Chia-Network/chia-blockchain/pull/13647
2022-11-15 18:41:27 -06:00
Earle LoweandGitHub 0f0fbd8eca Set GUI binary name to chia-blockchain in the Ubuntu DEB (#13910)
set gui binary name to chia-blockchain
2022-11-15 18:39:18 -06:00
Izumi HoshinoandGitHub 7cff4532df Set GUI binary name to chia-blockchain in the Fedora rpm (#13915)
set gui binary name to chia-blockchain (rpm)
2022-11-15 18:38:51 -06:00
dustinfaceandGitHub 8e2e51a8c8 Add optional outbound parameter to get_connections (#13879) 2022-11-15 17:40:16 -06:00
f30f0b3512 Call close callback for already closed connections (#13727)
* always call close callback

* Some further explorations

* some more explorations

* Add delay while connections are closed in test

* Add a delay to make sure connections drain

* Update chia/server/server.py

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

* Update tests/connection_utils.py

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

* use log_exceptions context manager

* set close flag correctly

* Added callback type and other changes

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-11-15 16:23:06 -06:00
Brandon ButlerandGitHub a731c7e3c2 Update endpoint for flake8 in pre-commit config (#13913) 2022-11-15 14:30:05 -06:00
Snyk botandGitHub f93829ff40 [Snyk] Upgrade lerna from 5.5.2 to 5.6.1 (#13699)
fix: upgrade lerna from 5.5.2 to 5.6.1

Snyk has created this PR to upgrade lerna from 5.5.2 to 5.6.1.

See this package in npm:
https://www.npmjs.com/package/lerna

See this project in Snyk:
https://app.snyk.io/org/chia-network/project/84426c68-2dee-4989-8542-ee04aad80b7b?utm_source=github&utm_medium=referral&page=upgrade-pr
2022-11-15 00:18:17 -06:00
Kronus91andGitHub 3879cea12e Delete DID wallet after transfer (#13389)
* Delete DID wallet after transfer

* Adjust tests

* Fix merge

* Remove rl_wallet

* Fix tests

* Fix DID bugs

* Add tests

* Add additional spend for DID update

* Fix unit test

* Handle bugged DID

* Cover empty hint case

* Fix unnecessary DID deletion
2022-11-14 11:12:28 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
7e6a906056 Bump black from 22.8.0 to 22.10.0 (#13647)
Bumps [black](https://github.com/psf/black) from 22.8.0 to 22.10.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/22.8.0...22.10.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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-11-12 14:19:18 -06:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
47adada680 Bump dnslib from 0.9.22 to 0.9.23 (#13792)
Bumps [dnslib](https://github.com/paulc/dnslib) from 0.9.22 to 0.9.23.
- [Release notes](https://github.com/paulc/dnslib/releases)
- [Commits](https://github.com/paulc/dnslib/compare/0.9.22...0.9.23)

---
updated-dependencies:
- dependency-name: dnslib
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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-11-12 14:18:43 -06:00
2706f5995b server: Enable and fix mypy in ws_connection.py (#13878)
* server: Enable and fix `mypy` in `ws_connection.py`

* Apply suggestions from code review

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

* Tweak error message

* Tweak formatting

* Make `WSChiaConnection.close_callback` optional

* Tweak assert message

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

* Don't provide a default for `close_callback`

* Adjust assertion

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-11-12 14:18:11 -06:00
Kronus91andGitHub df519c8a5d Add did_message_spend API (#13890)
* Add did_message_spend API

* Add get DID info API

* Resolve comments

* Add hints
2022-11-12 14:15:44 -06:00