Merge remote-tracking branch 'origin/unstable' into electra_attestation_changes

This commit is contained in:
Michael Sproul
2024-06-14 12:32:47 +10:00
34 changed files with 92 additions and 95 deletions

View File

@@ -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,
}
}

View File

@@ -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`.