Skip to content

Commit

Permalink
Update w.r.t. upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nc6 committed Jul 11, 2019
1 parent ce5a642 commit 1708a1f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ouroboros-consensus/src/Ouroboros/Consensus/Ledger/Byron.hs
Original file line number Diff line number Diff line change
Expand Up @@ -472,16 +472,12 @@ instance ( ByronGiven
applyLedgerHeader (ByronEBBLedgerConfig cfg) (ByronHeaderOrEBB hdr)
(ByronEBBLedgerState bs@(ByronLedgerState state snapshots)) = case hdr of
Left ebb ->
mapExcept (fmap (\i -> ByronEBBLedgerState $ ByronLedgerState i snapshots)) $ do
mapExcept (fmap (\i -> ByronEBBLedgerState $ ByronLedgerState i snapshots)) $
return $ state
{ CC.Block.cvsPreviousHash = Right $ CC.Block.boundaryHashAnnotated ebb}
Right h -> ByronEBBLedgerState <$> applyLedgerHeader cfg (ByronHeader h) bs

ledgerTipPoint (ByronEBBLedgerState state) =
Point { pointSlot = pointSlot bp
, pointHash = castHash $ pointHash bp
}
where bp = ledgerTipPoint state
ledgerTipPoint (ByronEBBLedgerState state) = castPoint $ ledgerTipPoint state

-- | Construct Byron block from unannotated 'CC.Block.Block'
--
Expand Down

0 comments on commit 1708a1f

Please sign in to comment.