INNER CODE UNIT · Rust
next_timestamp
n42blockchain/N42-rs · crates/chainspec/src/lib.rs:164
let next_timestamp = parent.timestamp + 12;
let expected = parent
.next_block_base_fee(spec.base_fee_params_at_timestamp(next_timestamp))
.unwrap_or_default();
let got = spec.next_block_base_fee(&parent, next_timestamp).unwrap_or_default();
assert_eq!(expected, got, "Base fee calculation does not match expected value");
}
}