Skip to content

Commit

Permalink
spec of tx pool method (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored Apr 22, 2021
1 parent ff7dc4f commit cebd574
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions txpool/txpool.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ message GetTransactionsRequest { repeated types.H256 hashes = 1; }
message GetTransactionsReply { repeated bytes txs = 1; }

service Txpool {
// preserves incoming order, unknown hashes will be omitted
rpc FindUnknownTransactions(TxHashes) returns (TxHashes);
// preserves incoming order
rpc ImportTransactions(ImportRequest) returns (ImportReply);
// preserves incoming order, if some transaction doesn't exists in pool - returns nil in this slot
rpc GetTransactions(GetTransactionsRequest) returns (GetTransactionsReply);
}

0 comments on commit cebd574

Please sign in to comment.