Commit Graph

4670 Commits

Author SHA1 Message Date
almog 3bf3a1b743 logs 2021-05-25 20:22:42 +03:00
almog 5815683841 debug 2021-05-20 17:58:29 +03:00
almog 2259ea9986 check vdf info for ip and sp 2021-05-20 17:47:18 +03:00
almog b974d642a7 remove wrong commit 2021-05-20 17:47:18 +03:00
almog a51667266b remove wrong commit 2021-05-20 17:47:18 +03:00
almog 7fa409475c compact proof lock 2021-05-20 17:47:08 +03:00
arvidn ef4d5c8e9b WIP: introduce InstrumentedLock to profile mutexes held and waited for for a long time 2021-05-20 17:46:57 +03:00
arvidn 8f111f9249 remove unused get_block_records() function
it's only used by one test. It's also a dangerous function since the whole chain may become very large, and may not fit in memory
2021-05-20 17:46:50 +03:00
almog 2e28e2bd75 Merge branch 'main' of github.com:Chia-Network/chia-blockchain into main 2021-05-19 14:16:04 +03:00
justinengland 55dbe2676a working false 2021-05-18 17:33:46 -06:00
justinengland f9cf76e0bc moving printed output inside of if to know if the command runs 2021-05-18 17:33:46 -06:00
justinengland 576bc017a9 == vs === 2021-05-18 17:33:46 -06:00
justinengland 5ed477ecf0 == vs is 2021-05-18 17:33:46 -06:00
justinengland 8bff69490a adding : 2021-05-18 17:33:46 -06:00
justinengland 9873679680 adding false setting to reset back to mainnet 2021-05-18 17:33:46 -06:00
Gene Hoffman 0af10068ce
Clearly prohibit root from installing the GUI (#5232)
* GUI should not build or run as root

* Use id -u instead

* shellcheck
2021-05-18 11:40:26 -07:00
Will Bendick 880df53f72
sets up wallet before running farm summary (#3235)
* sets up wallet before running farm summary

* fixes call to summary

* moves wallet peers discovery to after backup is initialized
2021-05-18 11:38:06 -07:00
almog 26baad1bdd test 2021-05-17 15:40:15 +03:00
Mariano Sorgente 1c808b6c29
Ms.spikes4 (Fix duplicate signage points) (#4844)
* Fix duplicate signage point spikes

* Block record not hash

* Fix bugs in signage point cache

* Fix test, and log in debug level

* Change transaction logging to info

* More logging improvements
2021-05-16 11:33:47 -07:00
Florin Chirica 7012ca9e07
Speedup outbound connections. (#5124)
* Initial commit.

* Fix typo.

* Retry each node once every 30 mins.

* Flake8.

* mypy.

* Bound number of concurrent outbound connections.

* Blank line.
2021-05-15 23:07:39 -07:00
Will Bendick 39ef69643b
release upnp ports on shutdown (#4024)
* release upnp ports on shutdown

* lint

* explicitly removes port mapping first to handle possible unclean shutdowns

* catches exception

* moves upnp setup to thread

* lint

* moves upnp logic to a message queue on a worker thread

* lint
2021-05-14 14:11:19 -07:00
Mariano Sorgente 92282fb954
Performance benchmark test (#4942)
* Performance benchmark

* dump profiles for the full node benchmarks

Co-authored-by: arvidn <arvid@libtorrent.org>
2021-05-14 14:08:18 -07:00
Arvid Norberg 5863cccf4c
a minor simplification in add_spendbundle (#5014) 2021-05-14 13:26:04 -07:00
Arvid Norberg a7d607ee90
block_store performance (#4573)
* compute header_hash once

* read header_hash from the DB instead of computing it
when adding a block to the block store, also add it to the cache. This saves an otherwise mandatory round-trip to the DB.
2021-05-14 13:23:34 -07:00
Florin Chirica bb662f27dc Address review comments. 2021-05-14 14:05:12 -06:00
Florin Chirica 07f8ed198f Make sure we don't call dns in tests. 2021-05-14 14:05:12 -06:00
Florin Chirica 3cbb5dc4d5 Fix bug. 2021-05-14 14:05:12 -06:00
Florin Chirica ca09382fe5 linter. 2021-05-14 14:05:12 -06:00
Florin Chirica 413d29083f Initial commit. 2021-05-14 14:05:12 -06:00
Xinyue Lu 5f4b56757a
Fix install.sh for Debian (#4152) (#4867) 2021-05-14 09:42:30 -07:00
Rostislav Skudnov b2800c94fa
Optimize Streamable parsing by avoiding extra post-init checks (#4714)
* Optimize Streamable parsing by avoiding extra post-init checks

A performance test indicates that this optimization makes parsing block
records from database up to 40% faster (0.66 vs 1.09 seconds for 10000
records).

* Add type annotations, remove unnecessary .keys() call in Streamable

Co-authored-by: Rostislav <rostislav@users.noreply.github.com>
2021-05-13 10:33:59 -07:00
Almog De Paz 3277058372
optional no_tx_filter (#4560)
* add no_tx option to get_header_blocks_in_range

* add type

* get_header_block_by_height no_tx_filter

* double negetive

* add param name

* param name

* change filter to false

* test header hash

* lint
2021-05-13 10:29:53 -07:00
Peter Tripp 178f63a3a3
exempt_peer_networks: allow exceeding target_peer_count. (#3234)
* exempt_peer_networks: allow exceeding target_peer_count.

* Flake8.

* Cleanup incorrect types.

* More typing.

* Added configuration examples for exempt_peer_networks.

* Be generous in the IP network definitions we allow as input.

* Correctly define 192.168.1.0/24 without host bits.

* Trivial change to re-trigger tests.

Co-authored-by: wjblanke <wjb98672@gmail.com>
2021-05-12 17:44:26 -07:00
An Long eb7b6dd243
Makes linter happy (#2483) 2021-05-12 17:31:28 -07:00
Don Kackman 56890df98d
only copy cert files for init -c (#3328)
* only copy cert files for init -c

* fix linter error on single vs double quotes

* black formatting
2021-05-12 15:34:20 -07:00
An Long 5034fcc85d
Add more types (#3441) 2021-05-12 15:32:21 -07:00
Rong Ou 4395f97260
set the execute mode on install-gui.sh (#4079) 2021-05-12 15:28:56 -07:00
Vyacheslav Linnik 2b19635d88
fix TypeError exception in case of unresponsive service (#4122) 2021-05-12 15:27:40 -07:00
J. Eckert df7dad8634
quick fix to update out-of-date CLI reference to close issue 4397 (#4538)
* quick fix to update out-of-date CLI reference to close issue 4397

* additional typo fixes in the cmds section

* removed old reference to incline Mnemonic inclusion in chia keys add
e Please enter the commit message for your changes. Lines starting

* Update keys_funcs.py

fixed some rogue quote changes due to a text editor flub

Co-authored-by: J. Eckert <sargonas@Js-MacBook-Air.sargonas.net>
Co-authored-by: J. Eckert <sargonas@Js-MacBook-Air.local>
2021-05-12 15:24:55 -07:00
Nikolaj Kuntner 2faab1ea83
Improve style consistency in root directory docs files (#4493)
* Improve style consistency

* black python required blank

Co-authored-by: Nikolaj Kuntner <>
2021-05-12 13:12:30 -07:00
lamba09 080e830bb1
removes match_string variable (#4671)
The `match_string` variable is an alias of `grep_string` and thus can be
replaced by it.

Co-authored-by: Mario Seeli <mario.seeli@dectris.com>
2021-05-12 13:00:41 -07:00
Matty G a56177ee56
Update to reflect CLI change (#4025) 2021-05-12 11:05:44 -07:00
Frederico Silva abd01b1e83
cmd: farm challenges, add missing space (#4038) 2021-05-12 10:50:30 -07:00
Chris Marslender 536d33ef59
second check should be fee, not amount again (#4112) 2021-05-12 10:49:48 -07:00
Arvid Norberg 12751ce811
add simple profiler, enabled by enable_profiler config (#4054)
Analyze profilers with chia/utils/profiler.py
2021-05-12 10:46:38 -07:00
Arvid Norberg 58a0eb548f
avoid calling header_hash repeatedly in weight_proof (#4060)
header_hash is a property that serializes and hash the foliage block, this is somewhat expensive, especially the serialization
2021-05-12 10:44:11 -07:00
Will Bendick 25f4b6c101
prevents multiple copies of same service with lockfile (#4713) 2021-05-12 10:43:22 -07:00
Arvid Norberg d3a71c3e19
make the serialization of Coin follow the normal protocol of implementing stream() (#4074) 2021-05-12 10:40:26 -07:00
Yostra 60fd84191d
don't read from cli (#4625) 2021-05-12 10:38:35 -07:00
Felix 3c616e2eee
#4339 flag "Consensus error 124, not disconnecting" as info (#4695) 2021-05-12 10:37:31 -07:00