Commit Graph
112 Commits
Author SHA1 Message Date
Richard Kiss 421b8e1987 Some minor bug fixes. Make bt.config return a deep copy. 2020-10-13 13:48:14 -07:00
Richard Kiss ef5b8b8dab Refactor some ConsensusConstants stuff. 2020-10-08 15:57:50 -07:00
fchiricaandGene Hoffman 1dd49d5bce Fix test. 2020-10-06 14:47:31 -07:00
Richard Kiss 117e08bc03 Remove many references to get_pool_wallet_tool. 2020-10-02 18:06:44 -07:00
Richard Kiss 72f1012adc Remove more WalletTool references. 2020-10-01 18:15:51 -07:00
Richard Kiss 075cea3217 Remove many WalletTool references. 2020-10-01 17:28:18 -07:00
Florin ChiricaandGene Hoffman 5b17e1cf23 Peer gossip. (#414)
* Initial commit.

* mypy

* Fix start service logic.

* Fix AddressManager tests.

* Experimentally increase timeout.

* Attempt to fix test.

* Flake8 typo

* Print traceback for CI build.

* Revert exception catching to gain more logs.

* Add serialization.

* Try to hack simulation test.

* Add debug info. Connect peers more often.

* Try to fix full node gossip.

* Remove introducer protocol from full node.

* Update request_peers test.

* Flake8 the test.

* Add sqlite.

* Address some review comments.

* Try to remove Peers() everywhere but introducer.

* flake8

* More linting.

* Limit other types of inbound connections.

* Initial commit new code.

* AddressManager tests working.

* flake8, mypy, some tests.

* More flake8.

* Tweak gossip protocol.

* Catch more connection failures.

* First attempt wallet gossip.

* Add wallet gossip test.

* Add back global signal handler.

* Resolve some SuperLinter issues.

* Fix some bugs.

* More linting.

* Lint.

* Attempt to improve network connectivity.

* Small fixes.

* Lint.

* Lint.

* Checkpoint address relay.

* Some fixes.

* Fix db path.

* Lint.

* Small fixes.

* Fix bugs.

* flake8, improve speed test simulation.

* py.black

* LGTM, other small fixes.

* Don't self connect.

* py.black

* Punish self connections even more.

* One more attempt to fix self connection.

* Don't connect to the introducer if I have all peers.

* Catch bugs.

* Fix typo.

* Type checking.

* Lint, catch timestamp bug.
2020-10-01 11:07:12 -07:00
Richard KissandGene Hoffman a57db60697 Fix tests. 2020-10-01 11:07:12 -07:00
Gene HoffmanandGene Hoffman 4107cbebe0 black tests/ 2020-10-01 11:07:12 -07:00
Mariano SorgenteandGene Hoffman 966b5bb989 Reformat using python black 2020-10-01 11:07:12 -07:00
Mariano SorgenteandGene Hoffman 5303db737b Test passing 2020-10-01 11:07:12 -07:00
Gene Hoffmanandfchirica 8168aeda9a Breaking changes to prepare for peer gossip later (#401)
* Initial commit breaking changes.

* Import some missing types.

* mypy.

* Lint.

Co-authored-by: fchirica <fchirica96@gmail.com>
2020-09-14 15:38:55 -07:00
Gene Hoffman 57c5e19353 Move to Super Linter 3.9.2 - now lint Black, flake8, mypy (#390)
* Try Super Linter at 3.9.0 and add linters

* 3.9.1 and set validate all to false

* Back to 3.9.1 and use only true VALIDATE_

* Place superlint in debug mode

* Try fix from 3.9.2

* black source. Start fixing flake8 issues

* Black tests, out of debug

* Black setup.py do to merge conflict
2020-09-14 15:38:55 -07:00
Mariano SorgenteandGene Hoffman 774307dce1 Changes for bls 0.2.3 (#354)
* Start of changes for bls 0.2.3
* Make remaining changes for new blspy
* Add migration for 1.0b9
Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
2020-08-18 10:59:45 -07:00
700eaad9e0 Ms.1.8bugs3 (#326)
* harvester fixes
* Improve networking stability
* Fix wallet shutdown
* Allow chia keys sign and chia keys verify
* Dislpay the public key also
* Retry loading invalid plots, handle drive disconnection
* Confirm before deleting plots
* Improve error message WIP
* XImproved error message for importing keys
* Uncomment process.kill
* Fix merge error with restore backup
* Fixed markdown
* Switch button order, and fix request_peers
* Consolidate styles
* Set ci's to timeout after 60 minutes has elapsed
* plot directories and memory buffer
* Fix flake8
* Update chiapos, chiavdf, chiabip158, and blspy

Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
Co-authored-by: Gene Hoffman <30377676+hoffmang9@users.noreply.github.com>
2020-07-27 16:01:18 -07:00
Richard KissandGene Hoffman 392b21bdaf Make MAX_COIN_AMOUNT an int. Remove obsolete helpers. 2020-07-27 16:01:18 -07:00
Richard KissandGene Hoffman 470b0c8c76 Use attributes instead of dictionary keys. 2020-07-27 16:01:18 -07:00
Richard KissandGene Hoffman 52091044e4 Use constants instead of dic overrides for tests set-up. 2020-07-27 16:01:18 -07:00
Richard KissandGene Hoffman 423efbc448 Don't use copy for constants. 2020-07-27 16:01:18 -07:00
Richard KissandGene Hoffman a263cc1c8c Use clvm via src.util.clvm to better control what API is accessed. 2020-07-16 13:05:43 -07:00
194e0c24ea New blspy, key formats, and new plot format (#309)
* Bump blspy-ietf
* wip lots of errors
* Respond to bram feedback, use eip 2334 for keys
* Fix most tests, use latest blspy
* Improve simulation test constants
* Fixed issue with plotting and reading plots
* Fix simulation test
* Override puzzle hash if we don't have key, for safety. Bump protocol version
* Fix superlint issue
* Switch to 1.0 proof of space format
* Temporary genesis block
* Update chiabip158, chiavdf versions

Co-authored-by: Gene Hoffman <hoffmang@hoffmang.com>
Co-authored-by: Alex Wice <alex@chia.net>
2020-07-16 13:05:43 -07:00
YostraandGene Hoffman 49deb0d93b post merge cleanup 2020-07-16 13:05:43 -07:00
YostraandGene Hoffman b74a030d22 flake8 tests 2020-07-16 13:05:43 -07:00
YostraandGene Hoffman 8b13aa0810 correct path 2020-07-16 13:05:43 -07:00
YostraandGene Hoffman 7edc7bf660 more time 2020-07-16 13:05:43 -07:00
YostraandGene Hoffman 24297ff26e formatting and constants for simulation 2020-07-16 13:05:43 -07:00
YostraandGene Hoffman e90866ffa9 tests cleanup 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman 22bca02451 Don't recreate block tools in simulator 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman 04edeb5255 Speed up tests 2020-07-16 13:05:43 -07:00
Gene HoffmanandGene Hoffman 0034838ffa Modify some test clean ups - fix Ubuntu 20.04 bug in install.sh 2020-07-16 13:05:43 -07:00
Gene HoffmanandGene Hoffman 7b34716ef4 Fix test_block_store - fix self._get_fingerprint_and_entropy - pylint 2020-07-16 13:05:43 -07:00
Gene HoffmanandGene Hoffman 2e25ca131c Fix flake8 - clean up tests and add to flake8 - lint src upload to pypi 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman a1b4392bb1 Tests passing 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman 4ec019411a Fix more tests 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman 1d59fee788 New Bram protocol changes and full node tests 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman 73398e0159 Remove challenge signature 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman 0dea6db7cd Remove raw keychain keys, update block tools with new protocol 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman e0d55993fe Implement new farmer and harvester protocol 2020-07-16 13:05:43 -07:00
Richard KissandGene Hoffman 0175cf64eb Use constants_for_dic. 2020-07-16 13:05:43 -07:00
Richard KissandGene Hoffman f8d06946cd Use make_test_constants_with_genesis. 2020-07-16 13:05:43 -07:00
Richard KissandGene Hoffman e4f3050667 Use ConsensusConstants in many more places. 2020-07-16 13:05:43 -07:00
Richard KissandGene Hoffman be8f973fa2 Pass constants into Farmer. 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman 7d87638b8b Remove localhost references, and fix connection bug 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman 8ae737e74a Change logging level to WARNING in tests 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman 9c748cfec4 Try to speed up with new BlockTools 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman b0356d5810 Use setup_nodes constants everywhere 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman 116ee138b8 Remove sleeps from tests 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman c0441391b8 Start working on test speeds 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman 51889d3601 Improve unfinish blocks load test 2020-07-16 13:05:43 -07:00
Mariano SorgenteandGene Hoffman 35822c8796 Ms.networking2 (#284)
* Improve test speed with smaller discriminants, less blocks, less keys, smaller plots
* Add new RPC files
* Refactor RPC servers and clients
* Removed websocket server
* Fixing websocket issues
* Fix more bugs
* Migration
* Try to fix introducer memory leak
* More logging
* Start client instead of open connection
* No drain
* remove testing deps
* Support timeout
* Fix python black
* Richard fixes
* Don't always auth, change testing code, fix synced display
* Don't keep connections alive introducer
* Fix more LGTM alerts
* Fix wrong import clvm_tools
* Fix spelling mistakes
* Setup nodes fully using Service code
* Log rotation and fix test
2020-07-16 13:05:43 -07:00