3d07934ca0
## Issue Addressed `Epoch::end_slot()` returns incorrect value when the epoch is the last epoch which can be represented by u64. ```rust let slots_per_epoch = 32; // The last epoch which can be represented by u64. let epoch = Epoch::new(u64::max_value() / slots_per_epoch); println!("{}", epoch.end_slot(slots_per_epoch)); // Slot(18446744073709551614) // -> correctly, the result should be `Slot(18446744073709551615)`. ``` |
||
---|---|---|
.. | ||
cached_tree_hash | ||
fork_choice | ||
int_to_bytes | ||
merkle_proof | ||
proto_array | ||
safe_arith | ||
serde_utils | ||
ssz | ||
ssz_derive | ||
ssz_types | ||
state_processing | ||
swap_or_not_shuffle | ||
tree_hash | ||
tree_hash_derive | ||
types |