Preston Van Loon
5c14cd64c5
nil check ( #4822 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-02-10 14:01:37 -08:00
Preston Van Loon
70cb06d50f
Report unhealthy if we think we are out of sync ( #4796 )
...
* Report unhealthy if we think we are out of sync
* gofmt
* Merge refs/heads/master into out-of-sync-unhealthy
2020-02-08 18:50:14 +00:00
Jim McDonald
06bc80d314
Add bad peer count ( #4537 )
...
* Add bad peer count
* Merge branch 'master' into badpeercount
* Merge branch 'master' into badpeercount
* Merge branch 'master' into badpeercount
* Merge branch 'master' into badpeercount
2020-01-16 21:07:09 +00:00
Jim McDonald
3d24a85121
Tidy-up of BestFinalized ( #4505 )
...
* Tidy up BestFinalized
* Ensure no more than maxPeers returned
* Merge branch 'master' into bestfinalized
* Merge branch 'master' into bestfinalized
* Merge branch 'master' into bestfinalized
* Merge branch 'master' into bestfinalized
* Remove swap file
* Provide potential PIDs array with capacity
* Add test for trimming and ordering in BestFinalized
* Merge branch 'master' into bestfinalized
2020-01-13 18:12:10 +00:00
Jim McDonald
22a3bf53ad
Do not panic if initial sync fails ( #4477 )
...
* Do not panic if initial sync fails
* Only consider peers with non-0 finalized epoch
* Additional fixes
* Fix tests
* Merge branch 'master' into mvlog
* Merge branch 'master' into mvlog
2020-01-10 21:36:20 +00:00
Nishant Das
03356fc7b5
Add Ability to Resync Node ( #4279 )
...
* add resyncing functionality
* add more validation to status message
* lint and build
* jim's review
* preston's review
* clean up
* remove log
* remove no sync
* change again
* change back
* remove spaces
* Update shared/slotutil/slottime.go
Co-Authored-By: Raul Jordan <raul@prysmaticlabs.com>
* Apply suggestions from code review
Co-Authored-By: Raul Jordan <raul@prysmaticlabs.com>
* fix refs
* raul's review
* goimports
* goimports
* add counter
* removed condition
* change back
* gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-01-02 16:09:28 +08:00
Jim McDonald
570efe3d04
Give peers a chance ( #4268 )
...
* Add decay function for peer badresponses count
* Activate peer decay in p2p
2019-12-12 14:34:28 +00:00
Jim McDonald
813233373e
Advanced peer tracking ( #4233 )
...
* Advanced peer status
* Rework errors; add tests
* Gazelle
* time->roughtime
* Update beacon-chain/p2p/handshake.go
Co-Authored-By: terence tsao <terence@prysmaticlabs.com>
* Update beacon-chain/p2p/interfaces.go
Co-Authored-By: terence tsao <terence@prysmaticlabs.com>
* Downgrade log
* Tidy up handshaking logic and commentary
* Downgrade log message
* Protect connected peers from disconnection; increase high water level to avoid bad interactions at maxPeers
2019-12-11 18:31:36 +08:00