comment correction
This commit is contained in:
parent
d07faa57ed
commit
fb5362ae3a
|
|
@ -123,8 +123,8 @@ impl UnminedBlock {
|
|||
}
|
||||
|
||||
fn asert_target(anchor_target: u64, height_delta: u32, time_delta: i128) -> u64 {
|
||||
// Deterministic fixed-point ASERT calculation. The polynomial is the
|
||||
// BCH ASERT approximation for 2^x, avoiding platform-dependent floats.
|
||||
// Deterministic fixed-point ASERT calculation. The polynomial
|
||||
// approximates 2^x without platform-dependent floats.
|
||||
let expected_time = height_delta as i128 * TARGET_BLOCK_SECONDS;
|
||||
let time_error = time_delta - expected_time;
|
||||
let exponent = (time_error << ASERT_RADIX_BITS) / ASERT_HALF_LIFE_SECONDS;
|
||||
|
|
|
|||
Loading…
Reference in New Issue