lighthouse-pulse/beacon_node/eth2_libp2p/src
Pawan Dhananjay 850a2d5985 Persist metadata and enr across restarts (#1513)
## Issue Addressed

Resolves #1489 

## Proposed Changes

- Change starting metadata seq num to 0 according to the [spec](https://github.com/ethereum/eth2.0-specs/blob/dev/specs/phase0/p2p-interface.md#metadata).
- Remove metadata field from `NetworkGlobals`
- Persist metadata to disk on every update
- Load metadata seq number from disk on restart
- Persist enr to disk on update to ensure enr sequence number increments are persisted as well.

## Additional info

Since we modified starting metadata seq num to 0 from 1, we might still see `Invalid Sequence number provided` like in #1489  from prysm nodes if they have our metadata cached.
2020-08-17 02:13:28 +00:00
..
behaviour Persist metadata and enr across restarts (#1513) 2020-08-17 02:13:28 +00:00
discovery Persist metadata and enr across restarts (#1513) 2020-08-17 02:13:28 +00:00
peer_manager Add multiaddr support in bootnodes (#1481) 2020-08-17 02:13:26 +00:00
rpc Mitigate too many outgoing connections (#1469) 2020-08-11 02:16:31 +00:00
types Persist metadata and enr across restarts (#1513) 2020-08-17 02:13:28 +00:00
config.rs Add multiaddr support in bootnodes (#1481) 2020-08-17 02:13:26 +00:00
lib.rs Activate peer scoring (#1284) 2020-07-07 10:13:16 +10:00
metrics.rs Track gossip subscriptions as a metric (#1445) 2020-08-04 04:18:10 +00:00
service.rs Add multiaddr support in bootnodes (#1481) 2020-08-17 02:13:26 +00:00