Skip to content

Commit

Permalink
feat: add p2pool tip info queries
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Feb 10, 2025
1 parent d3ea51f commit 7c2eac9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions applications/minotari_app_grpc/proto/p2pool.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,23 @@ import "base_node.proto";
import "block.proto";

service ShaP2Pool {
rpc GetTipInfo(GetTipInfoRequest) returns(GetTipInfoResponse);
rpc GetNewBlock(GetNewBlockRequest) returns(GetNewBlockResponse);
rpc SubmitBlock(SubmitBlockRequest) returns(tari.rpc.SubmitBlockResponse);
}

message GetTipInfoRequest {
}

message GetTipInfoResponse {
uint64 node_height = 1;
bytes node_tip_hash = 2;
uint64 p2pool_rx_height = 3;
uint64 p2pool_rx_tip_hash = 4;
uint64 p2pool_sha_height = 5;
uint64 p2pool_sha_tip_hash = 6;
}

message GetNewBlockRequest {
tari.rpc.PowAlgo pow = 1;
string coinbase_extra = 2;
Expand Down

0 comments on commit 7c2eac9

Please sign in to comment.