Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix broken protos #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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