Commit Graph
14659 Commits
Author SHA1 Message Date
Kyle AltendorfandGitHub e6f60c572e git -C and consistent activation in installer builds (#11098) 2022-04-08 09:59:59 -07:00
Kyle AltendorfandGitHub 13512be2b2 consistently name installer github actions artifact zips (#11096) 2022-04-08 09:59:36 -07:00
34d48a108b Changelog from 1.3.3 (#11081)
* Updating changelog

* Update appdmg to 0.6.4 to work with macos 12.3 (#10886)

* restrict click to < 8.1 for black

https://github.com/pallets/click/issues/2225

Doing this instead of updating since updating black will change several
files due to some formatting change.  I would like to take that on
separately from unbreaking CI.

* Check for vulnerable openssl (#10988)

* Check for vulnerable openssl

* Update OpenSSL on MacOS

* First attempt - openssl Ubuntu 18.04 and 20.04

* place local/bin ahead in PATH

* specify install openssl

* correct path

* run ldconfig

* stop building and check for patched openssl

* spell sudo right by removing it

* Remove openssl building - 1st attempt RHs

* Test Windows OpenSSL version HT @AmineKhaldi

* Get updated openssl version (#10991)

* Get updated openssl version

* Update pyinstaller

* Fix typo

* lets try this

* Let's try this

* Try this

Co-authored-by: Earle Lowe <e.lowe@chia.net>

* Gh 1.3.3v2 (#11011)

* Non Hobo patch the winstaller for CVE-2022-0778 (#10995)

* install.sh is not upgrading OpenSSL on MacOS (#11003)

* MacOS isn't updating OpenSSL in install.sh

* Exit if no brew on MacOS

* Code the if tree like a pro instead.

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

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

* Remove hobo patch

* apt show not needed (#10997)

* install/upgrade openssl on Arch Linux also

* Update CHANGELOG

* revert Arch change backport

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

Co-authored-by: wallentx <william.allentx@gmail.com>
Co-authored-by: Chris Marslender <chrismarslender@gmail.com>
Co-authored-by: Gene Hoffman <30377676+hoffmang9@users.noreply.github.com>
Co-authored-by: William Allen <wallentx@users.noreply.github.com>
Co-authored-by: Earle Lowe <e.lowe@chia.net>
2022-04-08 09:59:10 -07:00
Kyle AltendorfandGitHub 415236bf67 can we get by without dead snakes? (#11070)
* can we get by without dead snakes?

* Update install-timelord.sh

* Revert "Update install-timelord.sh"

This reverts commit cba3250b09.

* do not install python dev package for timelords build in ci

it is already there...

* more quotes for sh
2022-04-08 09:58:46 -07:00
2f9e718073 Ms.fast test blockchain (#11051)
* more work on test blockchain

* Optimize test_blockchain.py

* Fix weight proof bug

* Rename variable

* first rc_sub_slot hash bug

* New plots

* try with a new ID

* Run without cache

* Address test blocks and plots preparation.

* Update constant in test_compact_protocol().

* Update this constant too.

* Revert accidental altering of the gui submodule in ae7e3295f280a591e76c4dffdea75fb74ea5de6f.

* Fix benchmark test

* Revert mozilla-ca change

* Rebase on main

Co-authored-by: almog <almogdepaz@gmail.com>
Co-authored-by: Amine Khaldi <amine.khaldi@reactos.org>
2022-04-08 09:57:59 -07:00
Adam KellyandGitHub 7cd23b0077 Fix the case of claiming a large number of coins (#11038)
* Fix the case of claiming a large number of coins with a fee from a pool wallet

* Revert change to unrelated test

* Set PoolWallet.DEFAULT_MAX_CLAIM_SPENDS to 300

* A few review improvements
2022-04-08 09:57:08 -07:00
Arvid NorbergandGitHub 21fb6f260e transition to using chia_rs module (#11094) 2022-04-08 09:37:10 -07:00
Kyle AltendorfandGitHub 02a880fbac rebuild workflows (#11092) 2022-04-07 20:43:27 -07:00
Chris MarslenderandGitHub c7a89fc425 Add wallentx as additional assignee on mozilla CA update PRs (#11089) 2022-04-07 19:43:14 -05:00
ded9f68583 chia|tests|github: Implement, integrate and test plot sync protocol (#9695)
* protocols|server: Define new harvester plot refreshing protocol messages

* protocols: Bump `protocol_version` to `0.0.34`

* tests: Introduce `setup_farmer_multi_harvester`

Allows to run a test setup with 1 farmer and mutiple harvesters.

* plotting: Add an initial plot loading indication to `PlotManager`

* plotting|tests: Don't add removed duplicates to `total_result.removed`

`PlotRefreshResult.removed` should only contain plots that were loaded
properly before they were removed. It shouldn't contain e.g. removed
duplicates or invalid plots since those are synced in an extra sync step
and not as diff but as whole list every time.

* harvester: Reset `PlotManager` on shutdown

* plot_sync: Implement plot sync protocol

* farmer|harvester: Integrate and enable plot sync

* tests: Implement tests for the plot sync protocol

* farmer|tests: Drop obsolete harvester caching code

* setup: Add `chia.plot_sync` to packages

* plot_sync: Type hints in `DeltaType`

* plot_sync: Drop parameters in `super()` calls

* plot_sync: Introduce `send_response` helper in `Receiver._process`

* plot_sync: Add some parentheses

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

* plot_sync: Additional hint for a `Receiver.process_path_list` parameter

* plot_sync: Force named parameters in `Receiver.process_path_list`

* test: Fix fixtures after rebase

* tests: Fix sorting after rebase

* tests: Return type hint for `plot_sync_setup`

* tests: Rename `WSChiaConnection` and move it in the outer scope

* tests|plot_sync: More type hints

* tests: Rework some delta tests

* tests: Drop a `range` and iterate over the list directly

* tests: Use the proper flags to overwrite

* test: More missing duplicates tests

* tests: Drop `ExpectedResult.reset`

* tests: Reduce some asserts

* tests: Add messages to some `assert False` statements

* tests: Introduce `ErrorSimulation` enum in `test_sync_simulated.py`

* tests: Use `secrects` instead of `Crypto.Random`

* Fixes after rebase

* Import from `typing_extensions` to support python 3.7

* Drop task name to support python 3.7

* Introduce `Sender.syncing`, `Sender.connected` and a log about the task

* Add `tests/plot_sync/config.py`

* Align the multi harvester fixture with what we do in other places

* Update the workflows

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2022-04-07 17:10:44 -07:00
Arvid NorbergandGitHub 8c0cdda880 extend tests in test_blockchain to include more conditions, as well as ensuring consensus rules allow unknown condition parameters (#11079) 2022-04-07 12:04:44 -07:00
Kyle Altendorf bcbd28f030 Merge branch 'atari' into datalayer-sim-atari_1.3.3 2022-04-07 14:21:15 -04:00
Kyle AltendorfandGitHub 8a00d91b0f Merge pull request #11039 from Chia-Network/atari-merge_datalayer_sim_cd94ea6053b2e882ac5e05b12a1ac45520024374 2022-04-07 14:20:18 -04:00
Mariano SorgenteandGitHub 4c9a0edc64 Increases the probability of connecting to local trusted node (#10633) 2022-04-07 09:24:59 -07:00
ffd3b19315 Add /cat_get_unacknowledged API for accessing unknown CATs (#10382)
* Add /cat_get_unacknowledged API for accessing unknown CATs

* Reformat & fix cast issue

* Integration tested & add unit test

* Handle optional uint32

* Reformat

* Reformat

* Reformat

* Merge PR 10308

* Reformat

* Fix concurrent issue

* Add state change notification

* rename API

* Fix failing tests

* Updated state_change name

Co-authored-by: Jeff Cruikshank <jeff@chia.net>
2022-04-07 09:22:59 -07:00
dustinfaceandGitHub c8468bea07 wallet: Improve logging in create_more_puzzle_hashes (#10761)
* wallet: Improve logging in `create_more_puzzle_hashes`

It's pretty spammy currently when scanning puzzle hashes.

* scan -> create, Scanning -> Creating

* `scanning_msg` -> `creating_msg`
2022-04-07 09:21:08 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
ab71236215 Bump cryptography from 3.4.7 to 36.0.2 (#10787)
Bumps [cryptography](https://github.com/pyca/cryptography) from 3.4.7 to 36.0.2.
- [Release notes](https://github.com/pyca/cryptography/releases)
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/3.4.7...36.0.2)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-07 09:20:30 -07:00
dustinfaceandGitHub 0917d0ae78 wallet: Drop puzzles/genesis_checkers.py and related puzzles (#10790)
Its all duplicated code and puzzles as far as i can tell, see 
`chia/wallet/puzzles/tails.py`.
2022-04-07 09:19:37 -07:00
d892e14c64 Handle INSTALL_PYTHON_VERSION in Install.ps1, otherwise search 3.9/3.8/3.7 (#11034)
* Handle INSTALL_PYTHON_VERSION in Install.ps1, otherwise search 3.9/3.8/3.7

* fix python availability check in Install.ps1

* when Install.ps1 does not find an acceptable python, list supported versions in order

* Update Install.ps1

Co-authored-by: Matt Hauff <quexington@gmail.com>

Co-authored-by: Matt Hauff <quexington@gmail.com>
2022-04-07 09:18:54 -07:00
Kyle AltendorfandGitHub c0d346d428 Remove dead snakes usage from benchmark tests (#11053) 2022-04-07 09:18:15 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
42245d74eb Bump github/super-linter from 4.9.1 to 4.9.2 (#11067)
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.9.1 to 4.9.2.
- [Release notes](https://github.com/github/super-linter/releases)
- [Changelog](https://github.com/github/super-linter/blob/main/docs/release-process.md)
- [Commits](https://github.com/github/super-linter/compare/v4.9.1...v4.9.2)

---
updated-dependencies:
- dependency-name: github/super-linter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-07 09:17:53 -07:00
Florin Chirica 344dcc2883 Fix test. 2022-04-07 18:25:48 +03:00
Florin Chirica 8cc7ec6552 Use defaults for client/server files. 2022-04-07 17:55:02 +03:00
Florin Chirica 7a58abac67 Fix tests. 2022-04-07 17:11:15 +03:00
Amine KhaldiandGitHub 6026d734cf Significantly speedup preparing test blocks and plots by opting for a release download instead of a shallow git clone, and also by putting a caching layer on top of that. (#11065) 2022-04-06 20:15:10 -07:00
JeffandGitHub d35c414c09 Set keychain_proxy to None in await_closed() to support reinitialization (#11075)
* Set keychain_proxy to None in await_closed() to support reinitialization.

* Added `shutting_down` param to _await_closed() to control whether the keychain_proxy is closed.
2022-04-06 20:14:49 -07:00
Florin Chirica 473aeb4412 Try to fix lint again. 2022-04-06 21:00:13 +03:00
Florin Chirica 14733f7934 Some fixes. 2022-04-06 20:44:51 +03:00
Florin Chirica 346cdef48a Try to fix linter. 2022-04-06 20:01:53 +03:00
Florin Chirica e021220f15 Merge branch 'atari' into fc.new_server 2022-04-06 18:15:08 +03:00
Florin Chirica c29a3a73c9 Delete more legacy code. 2022-04-06 18:01:07 +03:00
Florin Chirica 7726a74abd Add HTTP server code. 2022-04-06 17:48:34 +03:00
Kyle AltendorfandGitHub c238ce17ba add -d for Install.ps1 (#11062) 2022-04-05 17:00:10 -07:00
Arvid NorbergandGitHub 492503f109 print average block rate at different block height windows (#11064) 2022-04-05 16:11:03 -07:00
JeffandGitHub bb57ccffa9 Improve handling of unknown pending balances (likely change from addi… (#10984)
* Improve handling of unknown pending balances (likely change from adding a maker fee).
Minor improvement for fingerprint selection -- enter/return selects the logged-in fingerprint.

* Minor output formatting improvements when showing offer summaries.
Minor wallet key selection improvements.
Added tests for print_offer_summary

* Linter fixes

* isort fix

* Coroutine -> Awaitable

* Removed problematic fee calculation from get_pending_amounts per feedback.
2022-04-05 16:09:00 -07:00
Kyle AltendorfandGitHub 45e4c7c156 Checkout test blocks and plots for benchmarks workflow (#11068) 2022-04-05 17:16:38 -05:00
William AllenandGitHub 6ed61bfbe5 Adding clean-workspace step to benchmarks (#11063) 2022-04-05 15:28:33 -05:00
Amine KhaldiandGitHub a2fa8dda01 Prepare test blocks and plots only for tests that need them. This saves us a couple more hours of CI running time. (#10975) 2022-04-05 10:34:57 -07:00
Jack NelsonandGitHub 9b7d7d2555 Remove websockets dependency & do some refactoring (#10611)
* remove old ws
2022-04-05 10:19:09 -07:00
Kyle AltendorfandGitHub d87b8ac087 simplify some header hash getting and assertions (#11007) 2022-04-05 08:54:38 -07:00
dustinfaceandGitHub 9311e58ac4 full_node: Drop unused MempoolManager.constants_json (#11046) 2022-04-05 08:53:48 -07:00
Arvid NorbergandGitHub b377339372 fix memory leak in test_full_sync (#11004) 2022-04-05 08:53:12 -07:00
Kyle AltendorfandGitHub a56ec0652f restrict click to < 8.1 for black (#10923) (#10993)
https://github.com/pallets/click/issues/2225

Doing this instead of updating since updating black will change several
files due to some formatting change.  I would like to take that on
separately from unbreaking CI.
2022-04-04 23:37:00 -07:00
wjblankeandGitHub 261f5baa6f bump up to 2.1.7 to fix inotify issue resolved by 848 (#11042) 2022-04-04 23:35:28 -07:00
dustinfaceandGitHub 4a4b14b78b github: Drop unused BUILD_VDF_CLIENT variables (#11050)
From my understanding this is only used by `chiavdf` source builds which 
happen only if `install-timelord.sh` gets called but it doesn't in the 
addressed cases.
2022-04-04 18:43:51 -07:00
22edd73331 Force apt to install the things we asked it to (#11047)
* Force apt to install the things we asked it to

* Update .github/workflows/benchmarks.yml

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

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2022-04-04 17:43:31 -07:00
Florin ChiricaandGitHub 85f103d0a2 Try wb mode. 2022-04-05 00:18:10 +03:00
Mariano SorgenteandGitHub 35fb7d341c Faster full node tests (#10986)
* Start fast full node tests

* Perf improvement on send_transaction

* Major performance improvement for mempool test

* Speed up another test

* Speed up mempool tests startup

* Lint

* Debug tests

* Try function scope for wallet_nodes

* Update comment
2022-04-04 13:49:33 -07:00
Florin Chirica f64b3cc7d1 Add download of files. 2022-04-04 23:40:37 +03:00
Arvid NorbergandGitHub fe77c69018 run_generator2 rust call and compact conditions data structure (#8862)
* use run_generator2 rust call and compact spend bundle conditions data structure pervasively.

* address review comments
2022-04-04 11:53:13 -07:00