Commit Graph
14659 Commits
Author SHA1 Message Date
Florin Chirica 7d453ffd86 Try this for super linter. 2022-01-30 17:48:30 +02:00
Florin Chirica 66764128a1 mypy. 2022-01-30 17:28:47 +02:00
Almog De PazandGitHub 204f0a87eb add rpcs (#9966)
* add subscribe cli and rpc
add unsubscribe cli and rpc

* change docstring

* change from flag to arg
2022-01-30 17:09:09 +02:00
Kyle AltendorfandFlorin Chirica b6e945f4e2 Pin black==21.12b0 for click 7 support. (#10027) 2022-01-30 15:09:57 +02:00
almog 2499815304 add fee config
add fee to dl rpc api and client
add fee to cmd's
2022-01-30 13:25:30 +02:00
Mariano SorgenteandGitHub f28fcccfa5 Ms.main tests (#10026)
* Try to fix compact tests

* Don't compactify recent blocks, earlier

* Update test_simulation.py

Increase number of blocks

* Update setup_nodes.py

* Update test_simulation.py

* Update test_daemon.py
2022-01-29 21:37:11 -05:00
JeffandGitHub 32df1225a2 Catch TimeoutError in test_multiple_writers. If raised, we'll skip the (#10031)
test. Increased the timeout to 60 seconds.

Tested that a legitimate error in the test will still trigger a failure.
2022-01-29 21:27:12 -05:00
Kyle AltendorfandGitHub 7c2c04b984 Pin black==21.12b0 for click 7 support. (#10027) 2022-01-29 13:54:30 -08:00
Florin Chirica fbea24b283 Refactor from PR comments. 2022-01-29 12:46:47 +02:00
Mariano SorgenteandGitHub 6e37b74742 Change compact block (#10011)
* Change compact block

* Also recent blocks

* Add bill's rollback code

* Fix v2 issue

* Fix v2 issue blockchain

* Fix tests
2022-01-28 19:19:10 -08:00
wjblankeandGitHub 442a83e968 change lite wallet peers from 5 to 3 (#9994) 2022-01-28 19:17:14 -08:00
ca84fa9f8d Sync improvements (#9974)
* stash

* change log level

* stash changes

* cat tests

* add node id chia show

* make max sibscribe items configurable

* lint

* add logs for limits

* paralelize incluzion valdiation, don't diconnet from remote peers until local peer in synced

* wallet rate limit

* test log lvl, trusted, black

* only validation under semaphore

* flake mypy trade test

* reduce flakyness

* merge fix

* rename

* linting

* validate parallel, apply serial

* reduce falkyness

* lint

* Fix CAT tests

* black

* flaky test, total amount

* fix cat test

* skip existing state

* skip existing

* try other caches

* flake8

Co-authored-by: Matt Hauff <quexington@gmail.com>
Co-authored-by: William Blanke <wjb98672@gmail.com>
2022-01-28 19:16:47 -08:00
Kyle Altendorf 4a046ba196 merge cleanup 2022-01-28 19:46:18 -05:00
Kyle Altendorf 2fd9c05697 Merge branch 'atari' into atari_wallet_fees-altendky 2022-01-28 19:45:52 -05:00
Matt HauffandGitHub fa2cdd6492 Fix signing with path m key (#10009) 2022-01-28 15:34:39 -08:00
b8ada1ceb7 introduce restrictions on generators at a specific height (#9957)
* introduce restrictions on generators at a specific height. disallow division on negative numbers and disallow redundant leading zeros on integer condition arguments (produced by a generator)

* use SOFT_FORK_HEIGHT constant

* there is no need to specify height when validating block in block_creation

* Update tests/core/full_node/test_mempool.py

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

Co-authored-by: dustinface <35775977+xdustinface@users.noreply.github.com>
2022-01-28 12:29:11 -08:00
William Blanke 8b838731d9 updated gui to 4f0dd5752669fb4fe0f3279a9754d46d69bc3c3b 2022-01-28 12:10:37 -08:00
Florin Chirica a4b15515b5 KV diff. 2022-01-28 21:16:03 +02:00
Florin Chirica f3dca678d8 Remove type: ignore as we have the function now. 2022-01-28 19:02:31 +02:00
Florin Chirica 93f33d00cf Merge branch 'atari' into fc.integration 2022-01-28 19:00:28 +02:00
Kyle AltendorfandGitHub 86781e39c5 Merge pull request #9933 from Chia-Network/atari_wallet_rpc_enhancements 2022-01-28 11:43:36 -05:00
Florin ChiricaandGitHub 47d760d479 Update data_layer.py 2022-01-28 17:57:25 +02:00
Matt Hauff 3427201829 Catchup merge from atari 2022-01-28 07:46:37 -07:00
Florin ChiricaandGitHub 7b0deb0d58 Add testnet config to data layer as well. 2022-01-28 14:55:09 +02:00
Florin Chirica ff8fce389a Complete code for unsubscribe. 2022-01-28 14:36:45 +02:00
Florin Chirica 2a2692708e Merge branch 'atari' into fc.integration 2022-01-28 14:22:24 +02:00
Florin Chirica ee57d32f43 Try to fix linter? 2022-01-28 14:21:29 +02:00
Chris MarslenderandGitHub cbbdb6510a Adding additional data to RPCs for metrics (#9945)
* Add "metrics" as an additional destination for get_blockchain_state changes

* Add compact/uncompact blocks to get_blockchain_state

* Add total mempool cost to blockchain state

* Add hint count to blockchain state

* Add info about max cost, block_cost, and block_fees

* Add mempool min fee to blockchain state

* Add dict for mempool fee estimates

* dont start key with number

* Move max block cost to blockchain state

* Add generic exception logging util

* Catch/log any exceptions in counting hints

* Fix inconsistent key

* Assert row is not none

* Move block count metrics to a new endpoint

* report on block instead of unfinished_block for metrics

* Mark the block event with bool for if transaction block or not

* Add some basic tests for counting hints

* Add some basic tests on counting compact/uncompact blocks

* Fix lint

* Add k-size

* Add timestamp

* Add header_hash + height
2022-01-27 18:42:49 -08:00
Kyle AltendorfandGitHub d1259a6832 Merge pull request #9961 from Chia-Network/atari_wallet_stop_tracking 2022-01-27 19:41:45 -05:00
Florin ChiricaandGitHub 80c87a217e Update chiavdf. (#9982) 2022-01-27 16:02:23 -08:00
Arvid NorbergandGitHub 2bb591c681 default log rotation to 50 MB (instead of 20) and make it configurable (#9986) 2022-01-27 15:54:20 -08:00
Kyle AltendorfandGitHub eb02a9a64f Merge pull request #9978 from Chia-Network/atari-fix_post_mega_merge
Atari fix post mega merge
2022-01-27 17:50:40 -05:00
Florin Chirica 2137a15ee9 Lint. 2022-01-27 22:35:38 +02:00
Florin Chirica 94fb925df8 Return subtree only in LATEST mode. 2022-01-27 22:29:43 +02:00
Kyle Altendorf 8b3c397cfa more await 2022-01-27 14:50:03 -05:00
Mariano SorgenteandGitHub f845cb3206 More logging when errors happen (#9987) 2022-01-27 14:18:29 -05:00
Florin ChiricaandGitHub e44a68a127 Fix whiteline. 2022-01-27 20:40:40 +02:00
Florin ChiricaandGitHub 85f0f99af0 Remove get_roots leftover. 2022-01-27 20:17:30 +02:00
Florin ChiricaandGitHub 1a125a5bf6 Merge branch 'atari' into fc.integration 2022-01-27 20:13:17 +02:00
Florin Chirica e32950c3bc Fix bugs. 2022-01-27 20:11:30 +02:00
Kyle Altendorf 3dbf13ca17 await 2022-01-27 13:01:50 -05:00
Kyle Altendorf 1d12f42558 less ugly error checking 2022-01-27 12:31:37 -05:00
Kyle Altendorf eed6be5984 fix to root_hashes in tests 2022-01-27 02:27:48 -05:00
Kyle Altendorf 9c7458f29e Merge branch 'atari' into atari-fix_post_mega_merge 2022-01-27 02:24:24 -05:00
Kyle Altendorf 15a2134a69 fix 2022-01-26 20:36:28 -05:00
Matt HauffandGitHub 0c8727f469 Remove wallet-only as a service group (#9935) 2022-01-26 17:21:08 -08:00
YostraandGitHub b08c904ebf migration (#9948) 2022-01-26 17:19:42 -08:00
Arvid NorbergandGitHub a501c53228 default new installs to use v2 blockchain database schema (#9951)
* default new installs to use v2 blockchain database schema. Leave an option to initialize a v1 database

* rename default database file to say v2
2022-01-26 17:14:05 -08:00
William Blanke 56736c7c1b updated gui to b650738675c8ad92983402b1b4ff6ddedc451d89 and chiavdf to 1.0.5 2022-01-26 16:48:26 -08:00
Matt HauffandGitHub 70150e9372 Keep backwards compatibility on coin record RPCs (#9938)
* Keep backwards compatibility on coin record RPCs

* Abstract functionality to a function
2022-01-26 16:45:21 -08:00