-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide slot-to-time conversion to ledger #3036
Provide slot-to-time conversion to ledger #3036
Conversation
This depends on two upstream PRs which I haven't opened yet. I want to review this PR with the team, to decided if the results of this initial plan look like we had anticipated. In particular, having to provide a slot length in order to create even a degenerate, fixed |
|
9da0afb
to
b1d7cec
Compare
This is Blocked on IntersectMBO/cardano-ledger#2223 cc: @nc6 @polinavino I opened that PR, but I'm hoping the Ledger team will finish it off without me. My initial commit there just gets it to build; in particular it does not yet use the new |
The PR has now been merged in the ledger, so this commit is good to go. |
b1d7cec
to
f873a40
Compare
@@ -204,10 +206,17 @@ source-repository-package | |||
tag: f73079303f663e028288f9f4a9e08bcca39a923e | |||
--sha256: 1n87i15x54s0cjkh3nsxs4r1x016cdw1fypwmr68936n3xxsjn6q | |||
|
|||
-- The r0 revision of this quickcheck-state-machine-0.7 on Hackage adds a lower |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As John Ky noted elsewhere, we no longer need this since we're only on GHC 8.10 now.
@@ -26,49 +25,16 @@ module Ouroboros.Consensus.BlockchainTime.WallClock.Types ( | |||
, SlotLength | |||
) where | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of this module's content was recently upstreamed to https://github.com/input-output-hk/cardano-base/blob/master/slotting/src/Cardano/Slotting/Time.hs
f873a40
to
410c8b6
Compare
410c8b6
to
610fd58
Compare
Most of the content that this commit removes from `Ouroboros.Consensus.BlockchainTime.WallClock.Types` was recently upstreamed in PR IntersectMBO/cardano-base#212. This PR updates `ouroboros-network` in turn. Combined with PR IntersectMBO/cardano-ledger#2223, this commit will discharge CAD-2713 via the new `EpochInfo` field `epochInfoSlotToRelativeTime_` et al. As of PR IntersectMBO/cardano-ledger#2223 being merged, the Shelley `Globals` now requires a `SystemStart`. In order to pipe it through to our ledger invocations, we must add it to `ConsensusConfig` for `TPraos`.
610fd58
to
7cea373
Compare
2076877
to
7cea373
Compare
Fixes #3096 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed on meet call
bors r+ |
3036: Provide slot-to-time conversion to ledger r=nfrisby a=nfrisby Fixes #3052. Addresses CAD-2713. The ledger needs to be able to convert slots to UTC times, so as of this PR, the HFC now provides that to the ledger. See the commit message for more details. Co-authored-by: Nicolas Frisby <nick.frisby@iohk.io>
Build failed: |
Ugh. the I'll get Hydra to try again. PS - I did, and it succeeded. But |
bors retry |
Build succeeded: |
awesome :) |
Fixes #3052.
Addresses CAD-2713. The ledger needs to be able to convert slots to UTC times, so as of this PR, the HFC now provides that to the ledger. See the commit message for more details.