mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 10:22:38 +00:00
Merge remote-tracking branch 'origin/unstable' into electra_attestation_changes
This commit is contained in:
@@ -685,7 +685,7 @@ mod test {
|
||||
fn get_eth1_data(i: u64) -> Eth1Data {
|
||||
Eth1Data {
|
||||
block_hash: Hash256::from_low_u64_be(i),
|
||||
deposit_root: Hash256::from_low_u64_be(u64::max_value() - i),
|
||||
deposit_root: Hash256::from_low_u64_be(u64::MAX - i),
|
||||
deposit_count: i,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2067,7 +2067,7 @@ pub fn timestamp_now() -> Duration {
|
||||
}
|
||||
|
||||
fn u64_to_i64(n: impl Into<u64>) -> i64 {
|
||||
i64::try_from(n.into()).unwrap_or(i64::max_value())
|
||||
i64::try_from(n.into()).unwrap_or(i64::MAX)
|
||||
}
|
||||
|
||||
/// Returns the delay between the start of `block.slot` and `seen_timestamp`.
|
||||
|
||||
Reference in New Issue
Block a user