Commit Graph

39 Commits

Author SHA1 Message Date
Mariano Sorgente
4e0f9df075 More testing and networking fixes 2021-01-12 17:00:52 -05:00
Mariano Sorgente
4c575638a8 Renamings and networking fixes 2021-01-12 17:00:52 -05:00
Mariano Sorgente
ab8e36e310 Allow launching service without connecting to daemon 2021-01-12 17:00:52 -05:00
Yostra
b28a8de0a3 flake8 2021-01-12 17:00:52 -05:00
Yostra
11e59b085a fix all 2021-01-12 17:00:52 -05:00
Yostra
7c079cf143 networking 2021-01-12 17:00:52 -05:00
Richard Kiss
6aa1b529ab Fix https://github.com/Chia-Network/chia-blockchain/issues/485 2020-10-21 14:14:13 -07:00
Richard Kiss
421b8e1987 Some minor bug fixes. Make bt.config return a deep copy. 2020-10-13 13:48:14 -07:00
Richard Kiss
a7991fe2f1 Normalize start_*.py. 2020-10-12 11:53:05 -07:00
Richard Kiss
7bbf64fa18 Greatly simplify Service. 2020-10-09 15:56:52 -07:00
Richard Kiss
6dcdcdba3d Factor out Service callbacks. 2020-10-09 12:05:48 -07:00
Richard Kiss
0bbbd8be57 Move upnp invocation. 2020-10-09 11:42:14 -07:00
Richard Kiss
3264342474 More ssl refactoring. 2020-10-08 15:57:50 -07:00
Richard Kiss
8d07b16e99 Refactor ssl cert stuff to start_server. 2020-10-08 13:31:39 -07:00
Florin Chirica
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
Mariano Sorgente
f7c4dc6642 LGTM and remove useless variable 2020-08-18 10:59:45 -07:00
Mariano Sorgente
7443820835 Don't kill other services in same process (fixes test) 2020-08-18 10:59:45 -07:00
Mariano Sorgente
5b27140b0c Also catch SIGBREAK on windows, and remove useless code 2020-08-18 10:59:45 -07:00
Mariano Sorgente
7c777b0fd3 Handle signal in cross platform way 2020-08-18 10:59:45 -07:00
Mariano Sorgente
68a1ea8746 Supress pylint error 2020-08-18 10:59:45 -07:00
Mariano Sorgente
45bebbe417 Close RPC server before waiting for ChiaServer 2020-08-18 10:59:45 -07:00
Mariano Sorgente
b52801f461 Fix zombies on mac/linux. Maybe windows? 2020-08-18 10:59:45 -07:00
Mariano Sorgente
52ecf97aba Ms.fix test (#331)
* Try to fix tests, and migrate 1.8 -> 1.9
* Stop the service after closing connections
2020-07-27 16:01:18 -07:00
Mariano Sorgente
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
Mariano Sorgente
4367ed36e7 Fix local simulation 2020-07-16 13:05:43 -07:00
Mariano Sorgente
fd909d49fa Fix connection issues 2020-07-16 13:05:43 -07:00
Mariano Sorgente
1055ee3ea2 Remove localhost references, and fix connection bug 2020-07-16 13:05:43 -07:00
Mariano Sorgente
8c67ead4f4 Fix connection issues 2020-07-16 13:05:43 -07:00
Mariano Sorgente
7d87638b8b Remove localhost references, and fix connection bug 2020-07-16 13:05:43 -07:00
Mariano Sorgente
fa39350758 Fix some more tests 2020-07-16 13:05:43 -07:00
Mariano Sorgente
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
Mariano Sorgente
b3d8b4116c Init full node before introducer 2020-06-08 17:17:48 -07:00
Yostra
b9fe2afd57 freeze in main 2020-06-08 17:17:48 -07:00
Mariano Sorgente
bff3c2ffa2 Add plots, and fix rpc full node 2020-06-08 17:17:48 -07:00
Mariano Sorgente
c9bf65377f Apply black formatting 2020-06-08 17:17:48 -07:00
Richard Kiss
4cae3429c2 Refactor start_full_node into start_service. 2020-06-08 17:17:48 -07:00
Richard Kiss
15c40967de Add RPC options to start_service. 2020-06-08 17:17:48 -07:00
Richard Kiss
4cd780d9e9 Refactor start_farmer into start_service. 2020-06-08 17:17:48 -07:00
Richard Kiss
c552d063c1 Refactor start_introducer into start_service. 2020-06-08 17:17:48 -07:00