Skip to content

Commit

Permalink
Remove mempool subscription from watch.proto
Browse files Browse the repository at this point in the history
No need for this functionality right now.
  • Loading branch information
Mikhail Zabaluev committed Sep 24, 2021
1 parent 46bfc5b commit 036e384
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions chain-network/proto/watch.proto
Expand Up @@ -17,21 +17,6 @@ message SyncMultiverseRequest {

message BlockId { bytes content = 1; }

message MempoolEvent {
bytes fragment_id = 1;
oneof event {
MempoolFragmentInserted inserted = 2;
MempoolFragmentRejected rejected = 3;
MempoolFragmentInABlock in_a_block = 4;
};
}

message MempoolFragmentInserted {}

message MempoolFragmentRejected { string reason = 1; }

message MempoolFragmentInABlock { BlockId block = 1; }

service Watch {
// get a stream of blocks succesfully processed by the node, this means they
// are already validated.
Expand All @@ -41,10 +26,7 @@ service Watch {
// get tip updates
rpc TipSubscription(TipSubscriptionRequest) returns (stream BlockId);

rpc MempoolSubscription(MempoolSubscriptionRequest)
returns (stream MempoolEvent);

// fetch all blocks from the given initial chainlength to the tip, from all
// possible branches and in increasing order
rpc SyncMultiverse(SyncMultiverseRequest) returns (stream Block);
}
}

0 comments on commit 036e384

Please sign in to comment.