diff --git a/p2psentinel/sentinel.proto b/p2psentinel/sentinel.proto index 57634da..5bb438a 100644 --- a/p2psentinel/sentinel.proto +++ b/p2psentinel/sentinel.proto @@ -10,6 +10,7 @@ message EmptyMessage {} message SubscriptionData { optional string filter = 1; + repeated string topics = 2; } message Peer { @@ -45,6 +46,17 @@ message ResponseData { Peer peer = 3; } +message EnrEntry { + string key = 1; // the key of the data + bool remove = 2; // if set, remove this entry instead of updating. + bytes data = 3; // rlp compatible enr data +} + +message NodeData { + bytes NodeId = 1; // 32 byte node id +} + + service Sentinel { rpc SubscribeGossip(SubscriptionData) returns (stream GossipData); rpc SendRequest(RequestData) returns (ResponseData); @@ -55,4 +67,6 @@ service Sentinel { rpc PenalizePeer(Peer) returns(EmptyMessage); rpc RewardPeer(Peer) returns(EmptyMessage); rpc PublishGossip(GossipData) returns(EmptyMessage); + rpc UpdateEnr(EnrEntry) returns(EmptyMessage); + rpc GetNodeInfo(EmptyMessage) returns (NodeData); }