mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-11-10 10:05:17 +00:00
Merge 7caaa14b93
into f1a1c39332
This commit is contained in:
commit
4f53573cf5
@ -99,7 +99,7 @@ impl MineRangeConfig {
|
|||||||
}
|
}
|
||||||
Some(
|
Some(
|
||||||
self_start_position <= recall_position + SECTORS_PER_LOAD as u64
|
self_start_position <= recall_position + SECTORS_PER_LOAD as u64
|
||||||
|| self_end_position > recall_position,
|
&& self_end_position > recall_position,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,7 @@ pub(crate) async fn check_and_request_miner_id(
|
|||||||
d_id, c_id
|
d_id, c_id
|
||||||
))
|
))
|
||||||
} else {
|
} else {
|
||||||
|
check_miner_id(&mine_contract, d_id).await?;
|
||||||
Ok(d_id)
|
Ok(d_id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,7 @@ impl<'a> Miner<'a> {
|
|||||||
"Find a PoRA valid answer, quality: {}, target_quality {}, scale {:.3}",
|
"Find a PoRA valid answer, quality: {}, target_quality {}, scale {:.3}",
|
||||||
U256::MAX / quality,
|
U256::MAX / quality,
|
||||||
U256::MAX / self.target_quality,
|
U256::MAX / self.target_quality,
|
||||||
difficulty_scale_x64.as_u128() as f64 / (u64::MAX as f64 + 1.0)
|
difficulty_scale_x64.as_u128() as f64 / u64::MAX as f64
|
||||||
);
|
);
|
||||||
inc_counter(&HIT_COUNT);
|
inc_counter(&HIT_COUNT);
|
||||||
// Undo mix data when find a valid solition
|
// Undo mix data when find a valid solition
|
||||||
|
Loading…
Reference in New Issue
Block a user