max_value -> MAX

This commit is contained in:
realbigsean
2024-06-13 17:42:48 -04:00
parent 5789db042d
commit 5f986f50f9
27 changed files with 82 additions and 87 deletions

View File

@@ -561,8 +561,8 @@ impl<E: EthSpec> Discovery<E> {
/// Updates the `eth2` field of our local ENR.
pub fn update_eth2_enr(&mut self, enr_fork_id: EnrForkId) {
// to avoid having a reference to the spec constant, for the logging we assume
// FAR_FUTURE_EPOCH is u64::max_value()
let next_fork_epoch_log = if enr_fork_id.next_fork_epoch == u64::max_value() {
// FAR_FUTURE_EPOCH is u64::MAX
let next_fork_epoch_log = if enr_fork_id.next_fork_epoch == u64::MAX {
String::from("No other fork")
} else {
format!("{:?}", enr_fork_id.next_fork_epoch)