Skip to content

Commit

Permalink
added new method for finding txNum by its hash
Browse files Browse the repository at this point in the history
  • Loading branch information
JkLondon committed Oct 23, 2024
1 parent 7cbacde commit 3e246a5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions remote/ethbackend.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ service ETHBACKEND {
// it doesn't provide consistency
rpc TxnLookup(TxnLookupRequest) returns (TxnLookupReply);

// High-level method - can find txn number by txn hash
// it doesn't provide consistency
rpc TxnNumLookup(TxnLookupRequest) returns (TxnNumLookupReply);

// NodeInfo collects and returns NodeInfo from all running sentry instances.
rpc NodeInfo(NodesInfoRequest) returns (NodesInfoReply);

Expand Down Expand Up @@ -128,6 +132,10 @@ message TxnLookupReply {
uint64 block_number = 1;
}

message TxnNumLookupReply {
uint64 tx_number = 1;
}

message NodesInfoRequest {
uint32 limit = 1;
}
Expand Down

0 comments on commit 3e246a5

Please sign in to comment.