Add BeaconNodeService to RPC

This commit is contained in:
Age Manning 2019-03-22 12:36:45 +11:00
parent e758e71753
commit 0a59a73894
No known key found for this signature in database
GPG Key ID: 05EED64B79E06A93

View File

@ -12,6 +12,10 @@ syntax = "proto3";
package ethereum.beacon.rpc.v1;
// Service that currently identifies a beacon node
service BeaconNodeService {
rpc Info(Empty) returns (NodeInfo);
}
/// Service that handles block production
service BeaconBlockService {
@ -33,6 +37,26 @@ service AttestationService {
rpc PublishAttestationData (PublishAttestationDataRequest) returns (PublishAttestationDataResponse);
}
/*
* Beacon Node Service Message
*/
message NodeInfo {
string version = 1;
Fork fork = 2;
uint32 chain_id = 3;
}
message Fork {
bytes previous_version = 1;
bytes current_version = 2;
uint64 epoch = 3;
}
message Empty {
}
/*
* Block Production Service Messages
*/