Skip to content

Commit

Permalink
filter (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
elee1766 authored Jan 5, 2024
1 parent d3bfc9c commit fe57049
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion p2psentinel/sentinel.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import "types/types.proto";

message EmptyMessage {}

message SubscriptionData {
optional string filter = 1;
}

message Peer {
string pid = 1;
}
Expand Down Expand Up @@ -42,7 +46,7 @@ message ResponseData {
}

service Sentinel {
rpc SubscribeGossip(EmptyMessage) returns (stream GossipData);
rpc SubscribeGossip(SubscriptionData) returns (stream GossipData);
rpc SendRequest(RequestData) returns (ResponseData);
rpc SetStatus(Status) returns(EmptyMessage); // Set status for peer filtering.
rpc GetPeers(EmptyMessage) returns (PeerCount);
Expand Down

0 comments on commit fe57049

Please sign in to comment.