Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last seen block: as in-mem atomic instead of db field #245

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 22 additions & 5 deletions remote/ethbackend.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ service ETHBACKEND {
// Version returns the service version number
rpc Version(google.protobuf.Empty) returns (types.VersionReply);

// 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);

Expand Down Expand Up @@ -76,23 +79,37 @@ 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 SyncingReply {
uint64 last_new_block_seen = 1;
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 {}

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;
Expand Down