Skip to content

Commit

Permalink
Merge #2187: Hash estimation looking at wrong value
Browse files Browse the repository at this point in the history
Changed the network hash estimation to use the target difficulty and not the
total network accumulated difficulty.
  • Loading branch information
stringhandler committed Sep 15, 2020
2 parents 780b796 + 5a5911c commit c4e195a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl tari_rpc::base_node_server::BaseNode for BaseNodeGrpcServer {
let mut iter = data.iter().peekable();
let mut result = Vec::new();
while let Some(next) = iter.next() {
let current_difficulty = next.pow.accumulated_blake_difficulty.as_u64();
let current_difficulty = next.pow.target_difficulty.as_u64();
let current_timestamp = next.timestamp.as_u64();
let current_height = next.height;
let estimated_hash_rate = if let Some(peek) = iter.peek() {
Expand Down

0 comments on commit c4e195a

Please sign in to comment.