erigon-pulse/cmd/lightclient/rpc/proto/sentinel.proto
Giulio rebuffo f09084f45d
Refactored and got rid of ton of useless code (#5690)
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-10-10 20:14:07 +02:00

34 lines
715 B
Protocol Buffer

syntax = "proto3";
package lightrpc;
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);
}