Pawan Dhananjay
23a35c3767
Persist/load DHT on shutdown/startup ( #659 )
...
* Store dht enrs on shutdown
* Load enrs on startup and add tests
* Remove enr_entries from behavior
* Move all dht persisting logic to `NetworkService`
* Move `PersistedDht` from eth2-libp2p to network crate
* Add test to confirm dht persistence
* Add logging
* Remove extra call to beacon_chain persist
* Expose only mutable `add_enr` method from behaviour
* Fix tests
* Fix merge errors
2020-01-23 18:16:11 +11:00
Pawan Dhananjay
89f05e4a4f
Adds simulator for syncing ( #758 )
...
* Add CLI for beacon_chain_sim
* Rename beacon-chain-sim to simulator
* Fix simulator workflow
* Push Cargo.lock
* WIP syncing simulator
* Add cli args
* Remove eth1 stuff and deposits
* Add syncing strategy simulations
* Successful one node sync
* Clean up
* Rename to avoid confusion
* add command line args
* fix cargo fmt issues
* Add additional syncing strategies
* Run all syncing strategies one after other; add comments
* Improve cli argument parsing
* Change `end_after_checks` default to true
* Small modifications to syncing-sim
* Add `strategy` cli argument
* Documented defaults in cli help
Co-authored-by: mkinney <mike.kinney@gmail.com>
Co-authored-by: Age Manning <Age@AgeManning.com>
2020-01-23 18:07:39 +11:00
Pawan Dhananjay
661ef65de8
Persist eth1 cache ( #760 )
...
* Add intermediate structures for bytes conversion
* Expose byte conversion methods from `Eth1Service`
* Add eth1 ssz containers
* Fix type errors
* Load eth1 cache on restart
* Fix compile errors
* Update Cargo.lock
* Add comments and minor formatting
* Add test for eth1 cache persistence
* Restrict Deposit and Block cache field visibility
* Add checks
* Fix `SszDepositCache` check
* Implement Encode/Decode directly on `BlockCache`
2020-01-20 07:52:58 +11:00
Age Manning
13e74e5352
Correct stream timeout delay queue handling ( #803 )
...
* Correct stream timeout delay queue handling
* Correct small typo
2020-01-15 15:50:01 +11:00
Age Manning
c184a98170
Sync fixes ( #801 )
...
* Randomize peer selection for batch errors
* Downgrade attestation logging
* Handle range sync errors
* Update lock file
* Downgrade logs
* Decrease batch size for better thread handling
* Optimise peer selection in range sync
2020-01-15 14:48:09 +11:00
Paul Hauner
370c658c7c
Optimization: reduce BLS decompression ( #766 )
...
* Add RwLock-style caching for BLS pubkeys
* Tidy docker ignore
* Remove RwLocks
* Merge in master
2020-01-10 15:32:10 +11:00
Age Manning
b3712d8e9b
Discv5 upgrade ( #788 )
...
* Update discv5 to delay queues for timeouts
* Further discv5 bug fixes
2020-01-10 14:35:07 +11:00
Age Manning
30f51df4cf
Improved RPC timeout handling ( #770 )
...
* Handle slow app level responses for RPC
* Correct errors
* Terminates stream on error
2020-01-08 14:18:06 +11:00
Michael Sproul
f36a5a15d6
Store states efficiently in the hot database ( #746 )
...
* Sparse hot DB and block root tree
* Fix store_tests
* Ensure loads of hot states on boundaries are fast
* Milder error for unaligned finalized blocks
2020-01-08 13:58:01 +11:00
Age Manning
55680ab1d3
Update libp2p and updates gossipsub ( #764 )
...
* Update gossipsub, adds anonymous source
* Remove temp protobuf fix
2020-01-03 17:56:03 +11:00
Age Manning
45271abc16
Filter gossipsub message duplication ( #736 )
...
* Add duplication prevention to gossipsub
* Clean up topic logs
* Add content addressed messages for gossip
2019-12-20 16:26:30 +11:00
Paul Hauner
34f003adb8
Add more eth1 metrics ( #728 )
...
* Add metrics for junk eth1 votes
* Add eth1 cache metrics
2019-12-17 10:20:27 +11:00
Paul Hauner
f1edca30ff
Add Cargo.lock ( #684 )
2019-12-09 22:39:44 +11:00