Skip to content

Commit

Permalink
specing out rpcs needed for block explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
fireduck64 committed May 19, 2018
1 parent 21c7021 commit e4c1152
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions proto/snowblossom.proto
Expand Up @@ -145,6 +145,12 @@ service UserService {
rpc SubmitBlock ( Block ) returns ( SubmitReply ) {}
rpc SubmitTransaction ( Transaction ) returns ( SubmitReply ) {}
rpc GetUTXONode( GetUTXONodeRequest ) returns ( GetUTXONodeReply ) {}

rpc GetNodeStatus ( NullRequest ) returns ( NodeStatus ) {}
rpc GetHead ( NullRequest ) returns ( BlockHeader ) {}
rpc GetBlock ( RequestBlock ) returns ( Block ) {}
rpc GetTransaction ( RequestTransaction ) returns ( Transaction ) {}
rpc GetBlockHeader ( RequestBlockHeader ) returns ( BlockHeader ) {}
}

message PeerMessage {
Expand Down Expand Up @@ -178,6 +184,9 @@ message PeerInfo {
message RequestBlock {
bytes block_hash = 2;
}
message RequestTransaction {
bytes tx_hash = 1;
}
message RequestBlockHeader {
int32 block_height = 1;
}
Expand Down Expand Up @@ -220,6 +229,15 @@ message GetUTXONodeReply {
repeated TrieNode proof = 3;
}

message NullRequest {

}

message NodeStatus {
int32 mem_pool_size = 1;
int32 connected_peers = 2;
}

// -------------------------------------------------------------------
// LOCAL DATABASE THINGS - NOT PART OF PROTOCOL, NOT SENT OVER NETWORK
// -------------------------------------------------------------------
Expand Down

0 comments on commit e4c1152

Please sign in to comment.