From 3e246a53a2f476a9ec2518c17f547d92e80ac667 Mon Sep 17 00:00:00 2001 From: JkLondon Date: Wed, 23 Oct 2024 14:32:29 +0200 Subject: [PATCH] added new method for finding txNum by its hash --- remote/ethbackend.proto | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/remote/ethbackend.proto b/remote/ethbackend.proto index 214f9d4..b5bb1f0 100644 --- a/remote/ethbackend.proto +++ b/remote/ethbackend.proto @@ -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); @@ -128,6 +132,10 @@ message TxnLookupReply { uint64 block_number = 1; } +message TxnNumLookupReply { + uint64 tx_number = 1; +} + message NodesInfoRequest { uint32 limit = 1; }