mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-09 12:31:21 +00:00
f09084f45d
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
34 lines
715 B
Protocol Buffer
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);
|
|
}
|