4998 Commits
Author SHA1 Message Date
paulhainsworth-chiaandGitHub 6bbc9c3888 changelog for 1.2.8 (#8647)
* changelog for 1.2.8
1.2.8
2021-09-30 16:07:54 -07:00
Earle LoweandGitHub 7fdd0b2fd7 Improved mempool validation and test (#8652) 2021-09-30 16:07:22 -07:00
wjblankeandGitHub 9179353dda fixed head and upped test timeouts (#8639)
* fixed head and upped test timeouts

* upped test timeouts
2021-09-29 17:30:42 -07:00
4fddb5cdf1 Full node changes required for CAT / Standalone (#8616)
* full node changes

* hint store

* finish coin state tracking, mypy, flake8

* type hints

* bump protocol version

* change wallet tool for testing hint list

* mypy

* add check for state, future proof hint db for multiple hints per coin

* get hint rename

* clean

* Update chia/consensus/blockchain.py

Co-authored-by: Arvid Norberg <arvid.norberg@gmail.com>

Co-authored-by: Mariano Sorgente <3069354+mariano54@users.noreply.github.com>
Co-authored-by: Arvid Norberg <arvid.norberg@gmail.com>
2021-09-29 15:04:29 -07:00
Arvid NorbergandGitHub 4745c60c11 add stress tests with malicious generators (#8570)
* add tests with malicious generators

* raise limit for stress tests
2021-09-29 11:41:49 -07:00
Arvid NorbergandGitHub 37c77b32b4 update create_coin hint test to use a list (#8628)
* update create_coin hint test to use a list

* the hint/memo is always included in the CREATE_COIN conditions now
2021-09-28 15:46:20 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2a95b54082 Bump actions/setup-node from 2.4.0 to 2.4.1 (#8626)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.4.0...v2.4.1)

---
updated-dependencies:
- dependency-name: actions/setup-node
  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>
2021-09-28 15:23:34 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
576c9acb6a Bump github/super-linter from 4.6.1 to 4.8.0 (#8627)
Bumps [github/super-linter](https://github.com/github/super-linter) from 4.6.1 to 4.8.0.
- [Release notes](https://github.com/github/super-linter/releases)
- [Changelog](https://github.com/github/super-linter/blob/master/docs/release-process.md)
- [Commits](https://github.com/github/super-linter/compare/v4.6.1...v4.8.0)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-28 15:21:01 -07:00
William Blanke f25c2290d6 update clvm_rs 2021-09-28 14:10:51 -07:00
Chris MarslenderandGitHub e0a2f910e2 Update azure build process to use install.sh and other patterns from the GHA builds (#8625) 2021-09-28 13:33:17 -07:00
William Blanke de67c42302 updated gui to b0c950acf4881fd1601eba72a9df077c3e2bb60f 2021-09-25 19:48:15 -07:00
Jeff CruikshankandGitHub 1254d4decd In rare cases where os.replace fails, retry using shutil.move. (#8589)
* In rare cases where os.replace() fails, retry using shutil.move. Seen on some Windows installs.

* Catch the PermissionError specifically
2021-09-24 13:24:03 -07:00
a70082f29a macOS keyring.yaml support (#8292)
* Added 'service' as a Keychain ctor param. Removed 'testing'

* Detect existing keys in the Mac Keychain

* Fix to allow migration of keys on macOS

* Added dump_keyring.py tool to show decrypted contents of keyring.yaml

* Prompt to save passphrase to macOS keychain

* Master passphrase retrieval/removal from the macOS Keychain.
Fixed typos.

* Warn if errSecInteractionNotAllowed is detected when accessing the macOS Keychain

* Fixed file_keyring synchronization test failures on macOS.
Fixed sporadic test failures on macOS when fsevents are delivered for the keyring after deletion.
TempKeyring-based tests now patch supports_os_passphrase_storage() to return False.

* TempKeyring mocks-out legacy_keyring setup to allow tests to succeed on macOS (which could find existing keys in the Keychain)

* Fixed pylint error

* Use with_name instead of with_stem (which is new to Python 3.9)

* Fixed keychain tests that started prompting for the keyring passphrase.

* Fixed LGTM issues

* Re-added the cleaning up temp keychain statement. This is being removed in a separate PR.

* Linter fixes

* Fixed keyring assignment on macOS when passphrase support is disabled.

* Include 'can_save_passphrase' flag in keyring_status response

* More linter fixes

* Fixed determination of the user_passphrase_is_set flag. This was returning true for a newly created keyring without any keys (or passphrase set)

* Removed the tidy_passphrase function per feedback

* Added some comments based on feedback

* Update chia/cmds/passphrase_funcs.py

Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>

Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>
2021-09-24 10:32:57 -07:00
William Blanke b5537fcc53 update to clvm_rs 13 2021-09-23 08:05:35 -07:00
Arvid NorbergandGitHub fceb39f783 bump clvm_rs version and add test for the optional 3rd hint parameter to CREATE_COIN (#8566) 2021-09-22 21:01:10 -07:00
William Blanke 1742c4adbc updated gui to 51ea0c3fd510b9624dbe0a5dfd069836b669073a 2021-09-22 20:58:36 -07:00
RadexitoandGitHub 4983241b2a Added RPI4_64bit support for GUI installation script (#8159)
* Added support for Raspberry Pi 4 64Bit

* Added support for Raspberry Pi 4 64Bit

* Added support for Raspberry Pi 4 64Bit
2021-09-22 10:48:14 -07:00
OliverandGitHub b72f2c50af Fix edge case with negative input (#8529) 2021-09-22 10:45:26 -07:00
09e3843b24 Improve and fix outdated messages in CLI. (#8553)
* Improve and fix outdated messages in CLI.

* Update chia/cmds/init_funcs.py

Good catch

Co-authored-by: Jeff Cruikshank <paninaro@gmail.com>

Co-authored-by: Jack Nelson <jackmiami60612@gmail.com>
Co-authored-by: Jeff Cruikshank <paninaro@gmail.com>
2021-09-22 10:44:29 -07:00
Mariano SorgenteandGitHub 066a8b2119 Mypy issues on python 3.9.7 (#8554)
* Mypy issues on python 3.9.7

* Typo
2021-09-22 10:44:03 -07:00
Mariano SorgenteandGitHub a83d1650ca Only log warning when more than 10 seconds. (#8556)
Pre-validation can take a while since it's validating many blocks at once, including clvm and VDFs.
2021-09-22 10:43:44 -07:00
Niraj PathakandGitHub d6f495145e create beta installers (#8539)
Upload installer binaries to S3 whenever main is updated
2021-09-21 13:31:44 -06:00
Arvid NorbergandGitHub c41ccf6109 improve log formatting (#8543)
* don't use scientific notation for coin_store timing log

* improve logging of timings in add_spendbundle

* improve timing logging of pre_validate_spendbundle. Pass in spend_name

* improve block validation timing logging

* enable coin_store timing logging unconditionally at DEBUG log level

* validation time formatting

* farmer response time formatting
2021-09-21 10:48:44 -07:00
Arvid NorbergandGitHub 600a5f90a0 CoinStore benchmark and performance improvements (#8514)
* add coin_store benchmark

* optimize _set_spent in CoinStore

* simplify _add_coin_record, since we won't use it to replace an entry anymore

* use executemany in add_coin_record and set_spent

* disable sqlite sync
2021-09-21 10:43:43 -07:00
William Blanke 40f4e12707 updated gui to ec64bddae3c286a54c5d54936b7a845dea544817 2021-09-20 11:51:26 -07:00
e9bf0ec12b Reply type decorator (#8276)
* Check types of messages returned from other peers

* Check message type data structures at startup, check that no peeer messages that expect replies are broadcast, and dynamically check return types of messages that do expect replies.

* Type hint protocol message type check functions

* lint

* typo

* add replay_type decorator

* add api reply decorations

* typo

* Don't check non full-node broadcast messages

* Distinguish internal vs peer protocol error
Added Changelog
Moved static check to import time
Moved protocol timeouts to chia/protocols/protocol_timing.py
Comment typos
Rename create_request -> send_request
Comment that INVALID_PROTOCOL_MESSAGE is bannable, not temporary

* Call static check at module import time

* Rename message_response_ok

* Improve protocol checking for outgoing message validation

* Type-o

* reset submodule

Co-authored-by: almog <almogdepaz@gmail.com>
2021-09-20 11:31:15 -07:00
YostraandGitHub 5766a8d367 Fullnode related changes from wallet protocol and unharded derivation (#8522)
* fullnode related changes from wallet protocol and unharded derivation

* limit total subscriptions per peer

* reset counter on disconnect

* dict not a set

* check membership

* remove unused tests, lint
2021-09-18 10:27:34 -07:00
Arvid NorbergandGitHub 31dab2ae5f Rust only conditions (#8467)
* no need to check announcements in python, it's all done in rust

* remove python condition parsing, use rust unconditionally

* no need to assert_my_amount, it's done in rust

* assert my puzzlehash is done in rust, no need to check it in python

* parent id is checked in rust, no need to do it in python

* my coin ID is checked in rust, no need to do it in python

* reorder condition checks to have to ones we won't see at the end

* no need for the RUST_CONDITION_CHECKER constant anymore

* update pool tests to use get_name_puzzle_condition
2021-09-18 10:25:19 -07:00
Chris MarslenderandGitHub 4d3823bb70 Add a config option for peer_connect_timeout (#8516)
* Add a config option for peer_connect_timeout

* Add configure option for peer connect timeout

* Fix linter complaints
2021-09-17 18:35:06 -07:00
Arvid NorbergandGitHub f5dca63048 improve CoinStore test (#8495)
* improve CoinStore test by using pytest parameters (instead of for loops) and use a context manager for the DB connection

* use temporary filename for sqlite db
2021-09-17 14:09:02 -07:00
Chris MarslenderandGitHub 1abfd4d3f4 Update channel to direct users to in install.sh (#8517) 2021-09-17 13:59:09 -07:00
Chris MarslenderandGitHub c7255a78a9 Move software_version to after the error checking in ws_connection (#8518) 2021-09-17 13:57:30 -07:00
Chris MarslenderandGitHub 9359adbbe2 Add version to ws_connection for crawler (#8512) 2021-09-17 10:59:32 -07:00
dustinfaceandGitHub 43bb4f1888 changelog: Drop trailing whitespaces (#8474) 2021-09-17 10:55:31 -07:00
Jeff CruikshankandGitHub fb086bcdc1 Switched from using asyncio.to_thread to threading.Thread as to_thread is only available in Python 3.9 (#8481) 2021-09-17 10:54:53 -07:00
dustinfaceandGitHub 4f98891877 typo: passphase -> passphrase, Passphase -> Passphrase (#8473) 2021-09-17 10:52:50 -07:00
Earle LoweandGitHub 6d37d5477c configurable max message size (#8500) 2021-09-17 10:51:37 -07:00
Arvid NorbergandGitHub b748bb1356 Disable sqlite sync (#8319)
* change sqlite pragma synchronous=FULL to pragma synchronous=NORMAL to improve disk I/O performance. In the case of catastrophic (hardware, power or kernel) failure, our database can be rebuilt

* removed redundant database pragmas in wallet
2021-09-17 10:47:34 -07:00
Arvid NorbergandGitHub b66db03528 log timing of applying additions and removals to the coin store (#8493) 2021-09-17 10:41:23 -07:00
Arvid NorbergandGitHub 55baeb532a remove CoinStore's dependency on FullBlock. Just pass in the parts of the block necessary to add the block. Even though this is a net increase in lines of code (for now), it improves encapsulation of the CoinStore class and enables simpler tests of it (#8496) 2021-09-17 10:40:44 -07:00
paulhainsworth-chiaandGitHub 4c69dfd83e changelog 1.2.7 (#8503) 2021-09-16 15:34:01 -07:00
Arvid NorbergandGitHub e4b9db08cd execute the sqlite pragmas only once, at the lever where the database is opened. Also, say FULL instead of 2, to make it clearer what the pragma is doing (#5993) 2021-09-15 10:57:13 -07:00
OliverandGitHub 8c9b7e2bfb Special case height 0 to avoid querying all unspent coins (#8413) 2021-09-14 10:40:37 -07:00
Matt HauffandGitHub e18a71376d Make SpendBundle.debug() use the default genesis challenge by default (#8431) 2021-09-14 10:39:40 -07:00
9d59079bfa add ids to the return response of start_plotting (#7416)
* add ids to the return response of start_plotting

* black formatting

* Update chia/daemon/server.py

Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>

* Update server.py

updated a comment in order to get build actions to rerun

Co-authored-by: Adam Kelly <338792+aqk@users.noreply.github.com>
2021-09-14 10:38:10 -07:00
William Blanke a7e3c23277 updated gui to 0ef042ac3aa8cb6f1181f2ed70776c173fe17707 2021-09-13 14:29:23 -07:00
Tobias "Knight" SandGitHub f21d14d02d Fix shown permissions (#8450) 2021-09-13 13:20:52 -07:00
dustinfaceandGitHub ada12b3f42 tests: Fix rmtree call in create_pool_plot (#8463) 2021-09-13 13:20:36 -07:00
Jeff CruikshankandGitHub fd7bba6ae5 Ensure that config.yaml and keyring.yaml aren't partially written-to (#8379)
* Ensure that the initial config isn't partially written-to

* Fixed linter error

* Use os.replace instead of shutil.move

* Tests for reading/writing config.yaml

* Linter fixes
2021-09-13 13:20:19 -07:00
Jeff CruikshankandGitHub 1ac7e58140 Added validate_keyring_passphrase RPC. Includes a test in test_daemon. (#8325)
Some minor refactoring to support writing tidier RPC tests.
2021-09-13 13:19:52 -07:00