mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 18:21:45 +00:00
Prioritise StatusV2 over StatusV1 RPC protocol (#7912)
Prioritise `StatusV2` over `StatusV1` RPC protocol. A bug discovered during devnet-4 testing and extracted from the sync fixes PR #7876.
This commit is contained in:
@@ -825,8 +825,8 @@ impl<E: EthSpec> RequestType<E> {
|
||||
match self {
|
||||
// add more protocols when versions/encodings are supported
|
||||
RequestType::Status(_) => vec![
|
||||
ProtocolId::new(SupportedProtocol::StatusV1, Encoding::SSZSnappy),
|
||||
ProtocolId::new(SupportedProtocol::StatusV2, Encoding::SSZSnappy),
|
||||
ProtocolId::new(SupportedProtocol::StatusV1, Encoding::SSZSnappy),
|
||||
],
|
||||
RequestType::Goodbye(_) => vec![ProtocolId::new(
|
||||
SupportedProtocol::GoodbyeV1,
|
||||
|
||||
Reference in New Issue
Block a user