Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ordian committed May 18, 2020
1 parent 203f6e3 commit 9541d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_layer/core/src/proof_of_work/monero_rx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fn monero_difficulty_calculation(header: &BlockHeader) -> Result<Difficulty, Mer
let hash = vm.calculate_hash(&input)?;
let scalar = U256::from_big_endian(&hash); // Big endian so the hash has leading zeroes
let result = MAX_TARGET / scalar;
let difficulty = u64::from(result).into();
let difficulty = result.low_u64().into();
Ok(difficulty)
}
#[cfg(not(feature = "monero_merge_mining"))]
Expand Down

0 comments on commit 9541d03

Please sign in to comment.