Commit Graph

4701 Commits

Author SHA1 Message Date
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
wjblanke 79430402b4
use chiapos 1.0.2 (#4638) 2021-05-13 01:57:15 +09:00
Chris Marslender 4fc32cb5a8
Add pending coin removal count (#4509) 2021-05-11 09:40:49 -07:00
Nikolaj Kuntner cbc9141689
add all none's (#4503)
Co-authored-by: Nikolaj Kuntner <>
2021-05-10 22:05:45 -07:00
J. Eckert 118e7ccaeb
Additional Issue Template changes (#3489)
* added new issue templates for support and requestes

* spelling is hard...

* tweaked issue templates for clearer submissions and easier triaging

* redirected support and ideas straight to Discussions, and added a link to Keybase

* Update config.yml

updating to make linter happy

* Update config.yml

* Sanitize?

* Update config.yml

yet another attempt to pass the lint check

* Try prettify

* skip the issue template lint

Co-authored-by: J. Eckert <sargonas@Js-MacBook-Air.sargonas.home>
Co-authored-by: Gene Hoffman <30377676+hoffmang9@users.noreply.github.com>
Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
2021-05-10 12:40:00 -07:00
Evgenij f011bcf90d RockyLinux support has been added
RockyLinux support has been added for install-gui.sh
2021-05-09 23:36:36 -07:00
Benedict Jin bac1b8db6b Remove the useless loop iterator variable for did_wallet 2021-05-09 23:31:18 -07:00
Alfonso Perez 1faa5e67af
Clarify units of amount and fees in wallet help dialog (#3472)
* clarify units of amount and fees

* format code to pass linting rules
2021-05-10 14:58:38 +09:00
Chris Marslender 61baae5648 Add unspent coin count to wallet balance API 2021-05-09 13:21:38 -07:00
Gene Hoffman 2c8f4546c3
Am not PM (#4320)
* Am not PM

* Ignore error 124
2021-05-09 10:59:47 -07:00
Gene Hoffman 0b91005c6b
Changelog for 1.1.5 (#4313) 2021-05-09 09:37:51 -07:00
Mariano Sorgente 5d3d4bbefc
No negative amounts (#4294)
Mempool no negative amounts
Don't disconnect for COIN_AMOUNT_NEGATIVE
2021-05-10 01:28:15 +09:00
justinengland ec0a4cec4b fixing dupes 2021-05-05 18:19:45 -06:00
justinengland 3bfb6a7628 black stuff 2021-05-05 18:19:45 -06:00
justinengland 0f2af011d5 adding testnet0 back 2021-05-05 18:19:45 -06:00
justinengland 6d88e2e2f4 proper white space for precious python. 2021-05-05 18:19:45 -06:00
justinengland b8b7f91dc6 syntax 2021-05-05 18:19:45 -06:00
justinengland 717f5dd995 syntax? 2021-05-05 18:19:45 -06:00
justinengland a1e66ee7fb fixing linting errors 2021-05-05 18:19:45 -06:00
Justin England ab38cae3f8 Update chia/cmds/configure.py
Co-authored-by: Chris Marslender <chrismarslender@gmail.com>
2021-05-05 18:19:45 -06:00