Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

topics field #208

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions p2psentinel/sentinel.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ message EmptyMessage {}

message SubscriptionData {
optional string filter = 1;
repeated string topics = 2;
}

message Peer {
Expand Down Expand Up @@ -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);
Expand All @@ -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);
}
Loading