Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 5edaaa5

Browse files
committed
fix: change timestamp before taking hash
1 parent a686840 commit 5edaaa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,8 +904,8 @@ async fn get_template(
904904
.unwrap()
905905
.try_into()
906906
.map_err(|s: String| anyhow!(s))?;
907-
let mining_hash = header.mining_hash().clone();
908907
header.timestamp = EpochTime::now();
908+
let mining_hash = header.mining_hash().clone();
909909
info!(target: LOG_TARGET,
910910
"block result target difficulty: {}, block timestamp: {}, mining_hash: {}",
911911
block_result.target_difficulty.to_string(),

0 commit comments

Comments
 (0)