Commit Graph
14659 Commits
Author SHA1 Message Date
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
Kyle Altendorf 97d94d9569 Merge branch 'main' into altendky-data_layer_exploration 2021-09-22 17:39:48 -04: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
Kyle Altendorf 235019fa20 add data layer action logging 2021-09-22 12:18:12 -04:00
Kyle Altendorf 72e13e8f71 add missing db.commit() 2021-09-21 17:16:50 -04: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
Kyle Altendorf 1499729b5e stricter mypy, add DataStore.get_row_by_index(), introduce TableRow
Compound commits are bad.  Making mypy stricter pointed out some things and
they snowballed.  If this is problematic even at this early stage, I can
adjust and put more effort into avoiding this.
2021-09-21 12:05:47 -04:00
Kyle Altendorf 3f0737ff0e make chia.data_layer a properly installed package 2021-09-21 09:41:32 -04:00
Kyle Altendorf 6775b755cd remove some commented out test code 2021-09-21 07:58:34 -04:00
Kyle Altendorf 780c689004 undo formatting change 2021-09-20 21:55:15 -04:00
Kyle Altendorf c969e63188 Merge branch 'main' into altendky-data_layer_exploration 2021-09-20 21:49:46 -04:00
Kyle Altendorf 55282ee4af add DataStore.get_rows_by_hash() 2021-09-20 20:31:24 -04: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
Kyle Altendorf 59098e160a remove some manual/auto-formatting silliness 2021-09-20 14:15:50 -04:00
almog 0cc1e04461 fix naming 2021-09-20 13:53:11 +03:00
Kyle Altendorf 206a2d2c59 black 2021-09-19 17:46:17 -04:00
Kyle Altendorf 96416e516b flake8 2021-09-19 17:01:49 -04:00
Kyle Altendorf f7f30714ec black 2021-09-19 16:59:20 -04:00
Kyle Altendorf 89f8ec314b implement some data layer DB insertion and deletion 2021-09-19 16:25:07 -04:00
Kyle Altendorf 8e292ec668 fix up CLVMObject hints 2021-09-19 16:04:48 -04:00
Kyle AltendorfandGitHub 2b43261ae6 Hint as CLVMObject.CLVMObject for now 2021-09-19 15:49:38 -04:00
almog ee8545125f tidy imports 2021-09-19 21:53:43 +03:00
almog 44211ffea4 start datalayer rpc and wallet 2021-09-19 21:31:48 +03: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
Kyle Altendorf 12505ba546 fill out more of data_layer.py for the linter 2021-09-17 11:29:46 -04:00
Kyle Altendorf 3b72db6f3d more for pylint 2021-09-17 10:30:14 -04:00
Kyle Altendorf e708a3685c black and flake8 2021-09-17 08:31:28 -04:00
Kyle Altendorf e502eb020a black 2021-09-17 08:03:48 -04:00
Kyle Altendorf 600ba2c667 add db table creation and a trivial test 2021-09-17 07:57:14 -04:00