Commit Graph

17 Commits

Author SHA1 Message Date
Age Manning
6f2fc7560a Apply clippy lints to beacon node 2019-11-28 14:06:46 +11:00
Age Manning
97aa8b75b8 Testnet compatible network upgrade (#587)
* Create libp2p instance

* Change logger to stdlog

* test_connection initial commit

* Add gossipsub test

* Delete tests in network crate

* Add test module

* Clean tests

* Remove dependency on discovery

* Working publish between 2 nodes
TODO: Publish should be called just once

* Working 2 peer gossipsub test with additional events

* Cleanup test

* Add rpc test

* Star topology discovery WIP

* build_nodes builds and connects n nodes. Increase nodes in gossipsub test

* Add unsubscribe method and expose reference to gossipsub object for gossipsub tests

* Add gossipsub message forwarding test

* Fix gossipsub forward test

* Test improvements
* Remove discovery tests
* Simplify gossipsub forward test topology
* Add helper functions for topology building

* Clean up tests

* Update naming to new network spec

* Correct ssz encoding of protocol names

* Further additions to network upgrade

* Initial network spec update WIP

* Temp commit

* Builds one side of the streamed RPC responses

* Temporary commit

* Propagates streaming changes up into message handler

* Intermediate network update

* Partial update in upgrading to the new network spec

* Update dependencies, remove redundant deps

* Correct sync manager for block stream handling

* Re-write of RPC handler, improves efficiency and corrects bugs

* Stream termination update

* Completed refactor of rpc handler

* Remove crates

* Correct compile issues associated with test merge

* Build basic tests and testing structure for eth2-libp2p

* Enhance RPC tests and add logging

* Complete RPC testing framework and STATUS test

* Decoding bug fixes, log improvements, stream test

* Clean up RPC handler logging

* Decoder bug fix, empty block stream test

* Add BlocksByRoot RPC test

* Add Goodbye RPC test

* Syncing and stream handling bug fixes and performance improvements

* Applies discv5 bug fixes

* Adds DHT IP filtering for lighthouse - currently disabled

* Adds randomized network propagation as a CLI arg

* Add disconnect functionality

* Adds attestation handling and parent lookup

* Adds RPC error handling for the sync manager

* Allow parent's blocks to be already processed

* Update github workflow

* Adds reviewer suggestions
2019-11-27 12:47:46 +11:00
Paul Hauner
b4806d27eb Fix comments from Michael 2019-09-26 10:46:56 +10:00
Age Manning
04b47a357b Correct bugs in new sync threading 2019-09-07 09:31:05 +10:00
Age Manning
812e1fbe26 Implements a new thread dedicated for syncing 2019-09-07 00:28:54 +10:00
Age Manning
ee25766cae Correct recent beacon block request bug 2019-09-05 22:18:17 +10:00
Age Manning
a3877b6135 Updates syncing stability, fixes large RPC message codec, corrects beacon chain referencing 2019-09-05 08:07:57 +10:00
Age Manning
2a1d6587a7 Merge latest interop 2019-09-05 03:03:45 +10:00
Paul Hauner
1b4679e5bc Improve block processing outcomes enum 2019-09-03 14:18:45 +10:00
Age Manning
13b5df56b3 Account manager, bootnodes, RPC display and sync fixes 2019-09-03 07:50:44 +10:00
Age Manning
cd7b6da88e Updates syncing, corrects CLI variables 2019-09-03 00:34:41 +10:00
Age Manning
74baeb4d08 WIP - Upgrade Sync algorithm 2019-09-02 05:38:11 +10:00
Age Manning
192380cb58 Ethereum 2.0 Network Specification Upgrade (#510)
Updates lighthouse to the latest networking spec

-  Sync re-write (#496)
-  Updates to the latest eth2 networking spec (#495)
-  Libp2p updates and improvements
2019-08-29 13:23:28 +02:00
Age Manning
0d56df474a Main batch sync debugging 2019-08-25 00:27:47 +10:00
Age Manning
b078385362 Improved syncing compilation issues 2019-08-24 01:09:29 +10:00
Age Manning
c259d6c006 First draft sync re-write. WIP 2019-08-18 03:36:13 +10:00
Age Manning
5d4d2f35e1 Initial sync re-write. WIP 2019-08-12 22:07:59 +10:00