erigon-pulse/cmd/lightclient/rpc/proto/sentinel.proto

36 lines
745 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package lightrpc;
import "beacon_block.proto";
message GossipRequest {}
enum GossipType {
// Lightclient gossip
LightClientFinalityUpdateGossipType = 0;
LightClientOptimisticUpdateGossipType = 1;
// Legacy gossip
BeaconBlockGossipType = 2;
}
message GossipData {
bytes data = 1; // SSZ encoded data
GossipType type = 2;
}
message RequestData {
bytes data = 1; // SSZ encoded data
string topic = 2;
}
message ResponseData {
bytes data = 1; // prefix-stripped SSZ encoded data
bool error = 2; // did the peer encounter an error
}
service Sentinel {
rpc SubscribeGossip(GossipRequest) returns (stream GossipData);
rpc SendRequest(RequestData) returns (ResponseData);
}