lighthouse-pulse/consensus
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
..
cached_tree_hash Clippy 1.49.0 updates and dht persistence test fix (#2156) 2021-01-19 00:34:28 +00:00
fork_choice Fix new clippy lints (#2036) 2020-12-03 01:10:26 +00:00
int_to_bytes update dependencies (#2032) 2020-12-07 08:20:33 +00:00
merkle_proof Implement matches! macro (#1777) 2020-10-15 21:42:43 +00:00
proto_array Clippy 1.49.0 updates and dht persistence test fix (#2156) 2021-01-19 00:34:28 +00:00
safe_arith Remove saturating arith from state_processing (#1644) 2020-09-25 05:18:21 +00:00
serde_utils Fix new clippy lints (#2036) 2020-12-03 01:10:26 +00:00
ssz update smallvec (#2152) 2021-01-11 23:32:11 +00:00
ssz_derive Clippy 1.49.0 updates and dht persistence test fix (#2156) 2021-01-19 00:34:28 +00:00
ssz_types Fix new clippy lints (#2036) 2020-12-03 01:10:26 +00:00
state_processing Clippy 1.49.0 updates and dht persistence test fix (#2156) 2021-01-19 00:34:28 +00:00
swap_or_not_shuffle Update external deps (#1711) 2020-10-05 08:22:19 +00:00
tree_hash update smallvec (#2152) 2021-01-11 23:32:11 +00:00
tree_hash_derive Clippy 1.49.0 updates and dht persistence test fix (#2156) 2021-01-19 00:34:28 +00:00
types Fix: end_slot returns incorrect value (#2138) 2021-01-19 03:50:06 +00:00