Skip to content

Commit

Permalink
feat: add timestamp to grpc (#6449)
Browse files Browse the repository at this point in the history
Add timestamp to tip info on grpc
  • Loading branch information
stringhandler authored Aug 5, 2024
1 parent 77e5ca9 commit 2902c8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions applications/minotari_app_grpc/proto/base_node.proto
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,11 @@ message MetaData {
uint64 best_block_height = 1;
// The block hash of the current tip of the longest valid chain, or `None` for an empty chain
bytes best_block_hash = 2;
// This is the min height this node can provide complete blocks for. A 0 here means this node is archival and can provide complete blocks for every height.
uint64 pruned_height = 6;
// The current geometric mean of the pow of the chain tip, or `None` if there is no chain
bytes accumulated_difficulty = 5;
// This is the min height this node can provide complete blocks for. A 0 here means this node is archival and can provide complete blocks for every height.
uint64 pruned_height = 6;
uint64 timestamp = 7;
}

message SyncInfoResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ impl From<ChainMetadata> for grpc::MetaData {
best_block_hash: meta.best_block_hash().to_vec(),
pruned_height: meta.pruned_height(),
accumulated_difficulty: diff.to_vec(),
timestamp: meta.timestamp(),
}
}
}

0 comments on commit 2902c8d

Please sign in to comment.