lighthouse
lighthouse copied to clipboard
Adding lighthouse/peers methods in BeaconNodeHttpClient
trafficstars
Issue Addressed
Issue #3041
Proposed Changes
- Add the corresponding get_lighthouse_peers() and get_lighthouse_connected_peers() methods to
BeaconNodeHttpClient - Impl
DeserializeonPeerstruct and all fields structs recursively
I noticed that the score is not serialized as:
"score": {
"score": 0
}
like described in the book, but like that:
"score": {
"RealScore": {
"lighthouse_score": 0,
"gossipsub_score": 0,
"ignore_negative_gossipsub_score": false,
"score": 0
}
}
Do we want to keep all the score details? Maybe we could streamline to just:
"score": 0
But obviously, that another breaking change...
Superseded by
- https://github.com/sigp/lighthouse/pull/4937