Commit graph

10176 commits

Author SHA1 Message Date
Justin England
4d8c9c8f36
removing trailing whitespace 2022-11-22 15:29:37 -07:00
Justin England
25439d178b
changing bug submission location to bugcrowd 2022-11-22 15:29:37 -07:00
Justin England
9566c9af4e
adding SECURITY.md 2022-11-22 15:29:37 -07:00
Justin England
16a2a241dd
removing trailing whitespace 2022-11-22 15:19:33 -07:00
Justin England
a923dc58cf
changing bug submission location to bugcrowd 2022-11-22 15:10:31 -07:00
Justin England
0dcfb6591f
adding SECURITY.md 2022-11-22 15:08:22 -07:00
William Allen
a825e15a09
Add support for pending transactions to get_mempool_item_by_tx_id() #9443 (#13976)
Co-authored-by: russ <2751728+rwarren@users.noreply.github.com>
Co-authored-by: Earle Lowe <30607889+emlowe@users.noreply.github.com>
2022-11-22 15:44:11 -06:00
Jeff
ca536d7002
Display key labels when making a wallet key selection (#13936)
Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2022-11-22 15:34:53 -06:00
dustinface
8412a9928a
isort: Remove all chia.wallet exceptions and sort the related files (#13977) 2022-11-22 15:33:43 -06:00
dustinface
e6f04b3760
isort: Remove all tests.wallet exceptions and sort the related files (#13978) 2022-11-22 15:33:17 -06:00
dustinface
fbd83671c6
server: Drop unused code in FullNodeDiscovery (#13980) 2022-11-22 15:32:54 -06:00
Snyk bot
3fe23f7c95
[Snyk] Upgrade lerna from 5.6.1 to 5.6.2 (#13979) 2022-11-22 15:32:31 -06:00
jcteng
5858a84ae2
Windows: start daemon without a window and detached from current console (#9697)
Co-authored-by: Earle Lowe <30607889+emlowe@users.noreply.github.com>
Co-authored-by: Earle Lowe <e.lowe@chia.net>
2022-11-22 15:32:00 -06:00
Kyle Altendorf
caa7e42845
simplify TradeManager.respond_to_offer() return (#13927)
* simplify TradeManager.respond_to_offer() return

* require the exception

* correct to match=

* another failure case
2022-11-21 20:29:35 -06:00
Adam Kelly
5cbc415589
Preserve correct MempoolItem block height when rebuilding mempool (#13951) 2022-11-21 16:28:48 -06:00
Arvid Norberg
9a951d835e
Improve debug logging in wallet_node message queue (#13968) 2022-11-21 12:00:50 -06:00
dustinface
5f706cea27
isort: Remove all tests.core exceptions and sort the related files (#13962) 2022-11-19 11:18:44 -06:00
dustinface
c052317299
isort: Remove all chia.types exceptions and sort the related files (#13961) 2022-11-19 11:18:27 -06:00
neurosis69
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 Nelson
5a74cb3581
Fix wallet fingerprint cli tests (#13958) 2022-11-18 18:30:43 -06:00
William Allen
7b3502d66d
Revert "Add a workflow for scanning python deps" (#13959) 2022-11-18 18:05:51 -06:00
dependabot[bot]
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
Jack Nelson
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
dustinface
78e367665b
Introduce sync_store.Peak (#13615) 2022-11-18 10:44:13 -06:00
dustinface
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
Patrick Maslana
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
dustinface
e0b8165cc5
isort: Remove all chia.full_node exceptions and sort the related files (#13953) 2022-11-18 10:41:45 -06:00
dustinface
2e2c297a80
util: Remove legacy keyring support (#13398) 2022-11-18 10:33:18 -06:00
Kyle Altendorf
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 Altendorf
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
dustinface
e1f4fa8d79
isort: Remove all chia.daemon exceptions and sort the related files (#13941) 2022-11-18 01:29:18 -06:00
Jeff
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
2022-11-17 23:00:22 -06:00
William Allen
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
Chris Marslender
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
dustinface
d9c97e15e4
isort: Remove all chia.util exceptions and sort the related files (#13939) 2022-11-17 15:32:18 -06:00
dustinface
977d2e97cd
isort: Remove all chia.cmds exceptions and sort the related files (#13940) 2022-11-17 15:32:03 -06:00
Chris Marslender
a69146284c
Ensure chia-blockchain still opens UI on Linux (#13826) 2022-11-17 13:53:38 -06:00
Kronus91
cf944f0260
Return minted NFT ID & Allow transfer NFT with NFT ID (#13928) 2022-11-17 13:51:02 -06:00
Arvid Norberg
27cbd08229
Factor out member functions of ProofOfSpace to be free functions (#13930) 2022-11-17 13:46:22 -06:00
github-actions[bot]
b6595faa1c
CA Cert updates (#13937)
adding ca updates

Co-authored-by: ChiaAutomation <automation@chia.net>
2022-11-17 10:24:49 -06:00
Kyle Altendorf
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 Paz
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 Marslender
966e67e81b
Set up commit signing for the mozilla CA updates (#13935) 2022-11-16 20:05:17 -06:00
dependabot[bot]
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 Norberg
53a570ebe1
Add option to analyze-chain to validate block signatures (#13917) 2022-11-16 13:59:21 -06:00
dustinface
e24263e21c
Reuse outbound_handshake (#13895) 2022-11-16 13:58:40 -06:00
dustinface
2ff987573d
Simplify ChiaServer.close_all_connections (#13916) 2022-11-16 13:57:30 -06:00
dustinface
5c861db42f
Make WSChiaConnection a dataclass (#13906)
Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-11-16 13:38:28 -06:00
dustinface
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 Altendorf
373880dc76
catch up test_complex_nft_offer() with return type change (#13926) 2022-11-16 10:41:49 -06:00