Merge pull request #3816 from realbigsean/advertise-blobs-supported-protocols

Add blob rpc protocols to `protocol_info`
This commit is contained in:
realbigsean 2022-12-16 14:38:06 -05:00 committed by GitHub
commit 4570ccd233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,6 +261,8 @@ impl<TSpec: EthSpec> UpgradeInfo for RPCProtocol<TSpec> {
ProtocolId::new(Protocol::Ping, Version::V1, Encoding::SSZSnappy),
ProtocolId::new(Protocol::MetaData, Version::V2, Encoding::SSZSnappy),
ProtocolId::new(Protocol::MetaData, Version::V1, Encoding::SSZSnappy),
ProtocolId::new(Protocol::BlobsByRoot, Version::V1, Encoding::SSZSnappy),
ProtocolId::new(Protocol::BlobsByRange, Version::V1, Encoding::SSZSnappy),
];
if self.enable_light_client_server {
supported_protocols.push(ProtocolId::new(