lighthouse/consensus/types
Akihito Nakano 3d07934ca0 Fix: end_slot returns incorrect value (#2138)
## 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)`.
```
2021-01-19 03:50:06 +00:00
..
benches Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
examples Directory Restructure (#1163) 2020-05-18 21:24:23 +10:00
src Fix: end_slot returns incorrect value (#2138) 2021-01-19 03:50:06 +00:00
Cargo.toml Avoid string initialization in network metrics and replace by &str where possible (#1898) 2020-11-18 23:31:37 +00:00