Allow slot clock to handle clock disparity (#929)

* Add PH & MS slot clock changes

* Account for genesis time

* Use checked mul

* Account for genesis slot

* Change API

* Refactor "duration to..." functions
This commit is contained in:
Paul Hauner
2020-04-01 17:40:04 +11:00
committed by GitHub
parent 5c397c49d8
commit 11a238900a
5 changed files with 377 additions and 77 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "slot_clock"
version = "0.1.0"
version = "0.2.0"
authors = ["Paul Hauner <paul@paulhauner.com>"]
edition = "2018"
@@ -8,3 +8,4 @@ edition = "2018"
types = { path = "../../types" }
lazy_static = "1.4.0"
lighthouse_metrics = { path = "../lighthouse_metrics" }
parking_lot = "0.9.0"