diff --git a/p2psentry/sentry.proto b/p2psentry/sentry.proto index 1cfa977..b0c11cb 100644 --- a/p2psentry/sentry.proto +++ b/p2psentry/sentry.proto @@ -93,6 +93,10 @@ message PeerMinBlockRequest { uint64 min_block = 2; } +message AddPeerRequest { + string url = 1; +} + message InboundMessage { MessageId id = 1; bytes data = 2; @@ -163,6 +167,10 @@ message PeerEvent { PeerEventId event_id = 2; } +message AddPeerReply { + bool success = 1; +} + service Sentry { // SetStatus - force new ETH client state of sentry - network_id, max_block, etc... rpc SetStatus(StatusData) returns (SetStatusReply); @@ -190,6 +198,8 @@ service Sentry { // Subscribe to notifications about connected or lost peers. rpc PeerEvents(PeerEventsRequest) returns (stream PeerEvent); + rpc AddPeer(AddPeerRequest) returns (AddPeerReply); + // NodeInfo returns a collection of metadata known about the host. rpc NodeInfo(google.protobuf.Empty) returns(types.NodeInfoReply); } diff --git a/remote/ethbackend.proto b/remote/ethbackend.proto index 1a8d411..c832970 100644 --- a/remote/ethbackend.proto +++ b/remote/ethbackend.proto @@ -66,6 +66,8 @@ service ETHBACKEND { // Peers collects and returns peers information from all running sentry instances. rpc Peers(google.protobuf.Empty) returns (PeersReply); + rpc AddPeer(AddPeerRequest) returns (AddPeerReply); + rpc PendingBlock(google.protobuf.Empty) returns (PendingBlockReply); } @@ -204,6 +206,10 @@ message NodesInfoRequest { uint32 limit = 1; } +message AddPeerRequest { + string url = 1; +} + message NodesInfoReply { repeated types.NodeInfoReply nodes_info = 1; } @@ -212,6 +218,10 @@ message PeersReply { repeated types.PeerInfo peers = 1; } +message AddPeerReply { + bool success = 1; +} + message PendingBlockReply { bytes block_rlp = 1; }