mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-09 20:41:20 +00:00
97a03a1ad7
* Squashed 'interfaces/' content from commit c4e14d6dc git-subtree-dir: interfaces git-subtree-split: c4e14d6dc80a157c60acd42f0152d631d250601e * Squashed 'interfaces/' changes from c4e14d6dc..84c5faa5f 84c5faa5f Update README.md 07db484a1 Update README.md ea14fa4e3 Update README.md git-subtree-dir: interfaces git-subtree-split: 84c5faa5f956ea52119911f39ac5864b282dcec2 * Change proto paths * Squashed 'interfaces/' changes from 84c5faa5f..eb9859d41 eb9859d41 Correct syntax ae78fe955 Add go package git-subtree-dir: interfaces git-subtree-split: eb9859d4157351fac3b8bd2f477307a09978e6df * Switch to shared proto files * Fix generation * Remove duplicate files * Init hard-coded tips when not recovering * Only check initiation when extending up
35 lines
670 B
Protocol Buffer
35 lines
670 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
package control;
|
|
|
|
option go_package = "./core;core";
|
|
|
|
enum InboundMessageId {
|
|
NewBlockHashes = 0; BlockHeaders = 1; BlockBodies = 2; NewBlock = 3;
|
|
NodeData = 4;
|
|
}
|
|
|
|
message InboundMessage {
|
|
InboundMessageId id = 1;
|
|
bytes data = 2;
|
|
bytes peer_id = 3;
|
|
}
|
|
|
|
message Forks {
|
|
bytes genesis = 1;
|
|
repeated uint64 forks = 2;
|
|
}
|
|
|
|
message StatusData {
|
|
uint64 network_id = 1;
|
|
bytes total_difficulty = 2;
|
|
bytes best_hash = 3;
|
|
Forks fork_data = 4;
|
|
}
|
|
|
|
service Control {
|
|
rpc ForwardInboundMessage(InboundMessage) returns(google.protobuf.Empty);
|
|
rpc GetStatus(google.protobuf.Empty) returns(StatusData);
|
|
} |