From 3e246a53a2f476a9ec2518c17f547d92e80ac667 Mon Sep 17 00:00:00 2001 From: JkLondon Date: Wed, 23 Oct 2024 14:32:29 +0200 Subject: [PATCH 1/3] 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; } From 3bb1442fe764181bc29a10270b0a430e1bb9b7f7 Mon Sep 17 00:00:00 2001 From: JkLondon Date: Thu, 24 Oct 2024 12:54:05 +0200 Subject: [PATCH 2/3] fix --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 542a921..85296bc 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/ledgerwatch/interfaces +module github.com/erigontech/interfaces go 1.18 From 214b5fd396ed662964dbb1a73fc2704e6e9339c4 Mon Sep 17 00:00:00 2001 From: JkLondon Date: Wed, 20 Nov 2024 08:45:53 +0100 Subject: [PATCH 3/3] fix --- remote/ethbackend.proto | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/remote/ethbackend.proto b/remote/ethbackend.proto index fb976d7..08e68e8 100644 --- a/remote/ethbackend.proto +++ b/remote/ethbackend.proto @@ -50,10 +50,6 @@ 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); @@ -183,10 +179,7 @@ message TxnLookupRequest { message TxnLookupReply { uint64 block_number = 1; -} - -message TxnNumLookupReply { - uint64 tx_number = 1; + uint64 tx_number = 2; } message NodesInfoRequest {