Skip to content

Commit

Permalink
Merge branch 'development' of github.com:tari-project/tari into devel…
Browse files Browse the repository at this point in the history
…opment
  • Loading branch information
stringhandler committed Sep 19, 2024
2 parents 658454b + 37fbc75 commit 0d5e09c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions applications/minotari_node/src/grpc/base_node_grpc_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -769,9 +769,15 @@ impl tari_rpc::base_node_server::BaseNode for BaseNodeGrpcServer {
"`GetNewBlockTemplateWithCoinbases` method not made available",
));
}
trace!(target: LOG_TARGET, "Incoming GRPC request for get new block template with coinbases");
let report_error_flag = self.report_error_flag();
let request = request.into_inner();
let shares = request
.coinbases
.iter()
.map(|c| c.value.to_string())
.collect::<Vec<_>>()
.join(", ");
debug!(target: LOG_TARGET, "Incoming GRPC request for get new block template with coinbases: {}", shares);
let algo = request
.algo
.map(|algo| u64::try_from(algo.pow_algo))
Expand Down Expand Up @@ -849,7 +855,7 @@ impl tari_rpc::base_node_server::BaseNode for BaseNodeGrpcServer {
Status::internal("Single coinbase fees exceeded u64".to_string()),
)
})?;
prev_coinbase_value = u128::from(coinbase.value);
prev_coinbase_value += u128::from(coinbase.value);
}

let key_manager = create_memory_db_key_manager().map_err(|e| {
Expand Down

0 comments on commit 0d5e09c

Please sign in to comment.