Skip to content

Commit

Permalink
fix: fix broken protos
Browse files Browse the repository at this point in the history
  • Loading branch information
stringhandler committed Sep 13, 2024
1 parent 07c87fe commit 9eb60e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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 @@ -218,7 +218,7 @@ message NetworkDifficultyResponse {
uint64 sha3x_estimated_hash_rate = 6;
uint64 randomx_estimated_hash_rate = 7;
uint64 num_coinbases = 8;
bytes first_coinbase_extra = 9;
repeated bytes coinbase_extras = 9;
}

// A generic single value response for a specific height
Expand Down Expand Up @@ -358,6 +358,8 @@ message SyncProgressResponse {
uint64 tip_height = 1;
uint64 local_height = 2;
SyncState state = 3;
string short_desc = 4;
uint64 initial_connected_peers = 5;
}

enum SyncState {
Expand Down Expand Up @@ -517,4 +519,3 @@ message GetSideChainUtxosResponse {
BlockInfo block_info = 1;
repeated TransactionOutput outputs = 2;
}

3 changes: 2 additions & 1 deletion routes/miners.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ router.get("/", async function (req, res) {
};

for (let i = 0; i < lastDifficulties.length; i++) {
let extra = lastDifficulties[i].first_coinbase_extra.toString();
console.log(lastDifficulties[i].coinbase_extras);
let extra = lastDifficulties[i].coinbase_extras.join("|");
let split = extra.split(",");

let unique_id =
Expand Down

0 comments on commit 9eb60e2

Please sign in to comment.