From 11edbdea02e20a0acbc120d31ce6ee7fe9705651 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 26 Oct 2024 11:32:31 +0700 Subject: [PATCH 1/4] save --- remote/ethbackend.proto | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/remote/ethbackend.proto b/remote/ethbackend.proto index 7d8f696..e96283a 100644 --- a/remote/ethbackend.proto +++ b/remote/ethbackend.proto @@ -18,6 +18,9 @@ service ETHBACKEND { // Version returns the service version number rpc Version(google.protobuf.Empty) returns (types.VersionReply); + // LastNewBlockSeen + rpc LastNewBlockSeen(google.protobuf.Empty) returns (LastNewBlockSeenReply); + // ProtocolVersion returns the Ethereum protocol version number (e.g. 66 for ETH66). rpc ProtocolVersion(ProtocolVersionRequest) returns (ProtocolVersionReply); @@ -76,23 +79,25 @@ enum Event { message EtherbaseRequest {} -message EtherbaseReply { types.H160 address = 1; } +message EtherbaseReply {types.H160 address = 1;} message NetVersionRequest {} -message NetVersionReply { uint64 id = 1; } +message NetVersionReply {uint64 id = 1;} + +message LastNewBlockSeenReply {uint64 block_number = 1;} message NetPeerCountRequest {} -message NetPeerCountReply { uint64 count = 1; } +message NetPeerCountReply {uint64 count = 1;} message ProtocolVersionRequest {} -message ProtocolVersionReply { uint64 id = 1; } +message ProtocolVersionReply {uint64 id = 1;} message ClientVersionRequest {} -message ClientVersionReply { string node_name = 1; } +message ClientVersionReply {string node_name = 1;} message CanonicalHashRequest { uint64 block_number = 1; From abca2ec86a8dff06d67d363c24c6b9baad0b50db Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 26 Oct 2024 11:36:38 +0700 Subject: [PATCH 2/4] save --- remote/ethbackend.proto | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/remote/ethbackend.proto b/remote/ethbackend.proto index e96283a..23908b5 100644 --- a/remote/ethbackend.proto +++ b/remote/ethbackend.proto @@ -18,8 +18,8 @@ service ETHBACKEND { // Version returns the service version number rpc Version(google.protobuf.Empty) returns (types.VersionReply); - // LastNewBlockSeen - rpc LastNewBlockSeen(google.protobuf.Empty) returns (LastNewBlockSeenReply); + // Status + rpc Status(google.protobuf.Empty) returns (StatusReply); // ProtocolVersion returns the Ethereum protocol version number (e.g. 66 for ETH66). rpc ProtocolVersion(ProtocolVersionRequest) returns (ProtocolVersionReply); @@ -85,7 +85,10 @@ message NetVersionRequest {} message NetVersionReply {uint64 id = 1;} -message LastNewBlockSeenReply {uint64 block_number = 1;} +message StatusReply { + uint64 last_new_block_seen = 1; + uint64 frozen_blocks = 2; +} message NetPeerCountRequest {} From d4a4a97e78849f9b2bc9bc806bed7978be5fc20a Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 26 Oct 2024 11:46:48 +0700 Subject: [PATCH 3/4] save --- remote/ethbackend.proto | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/remote/ethbackend.proto b/remote/ethbackend.proto index 23908b5..f592393 100644 --- a/remote/ethbackend.proto +++ b/remote/ethbackend.proto @@ -18,8 +18,8 @@ service ETHBACKEND { // Version returns the service version number rpc Version(google.protobuf.Empty) returns (types.VersionReply); - // Status - rpc Status(google.protobuf.Empty) returns (StatusReply); + // Syncing returns a data object detailing the status of the sync process + rpc Syncing(google.protobuf.Empty) returns (SyncingReply); // ProtocolVersion returns the Ethereum protocol version number (e.g. 66 for ETH66). rpc ProtocolVersion(ProtocolVersionRequest) returns (ProtocolVersionReply); @@ -85,9 +85,11 @@ message NetVersionRequest {} message NetVersionReply {uint64 id = 1;} -message StatusReply { +message SyncingReply { uint64 last_new_block_seen = 1; uint64 frozen_blocks = 2; + uint64 current_block = 3; + bool syncing = 4; } message NetPeerCountRequest {} From 56f59523ec0810703b5bac626a683b77a6e28360 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 26 Oct 2024 11:55:26 +0700 Subject: [PATCH 4/4] save --- remote/ethbackend.proto | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/remote/ethbackend.proto b/remote/ethbackend.proto index f592393..b459e48 100644 --- a/remote/ethbackend.proto +++ b/remote/ethbackend.proto @@ -90,6 +90,13 @@ message SyncingReply { uint64 frozen_blocks = 2; uint64 current_block = 3; bool syncing = 4; + + message StageProgress { + string stage_name = 1; + uint64 block_number = 2; + } + repeated StageProgress stages = 5; + } message NetPeerCountRequest {}