Skip to content

Commit

Permalink
TOSQUASH fixup generalise forgeGenesisEBB
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrisby committed Dec 14, 2019
1 parent 6214144 commit 5574ed7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ import Control.Tracer (nullTracer)

import qualified Cardano.Chain.Update as Update

import Ouroboros.Network.Block (SlotNo (..), blockPoint)
import Ouroboros.Network.Block (BlockNo (..), ChainHash (..),
SlotNo (..), blockPoint)

import Ouroboros.Consensus.Block (BlockProtocol)
import Ouroboros.Consensus.Ledger.Byron (ByronBlock)
import Ouroboros.Consensus.Ledger.Byron.Forge (forgeGenesisEBB)
import Ouroboros.Consensus.Ledger.Byron.Forge (forgeEBB)
import Ouroboros.Consensus.Node.ProtocolInfo
(PBftSignatureThreshold (..), ProtocolInfo (..),
protocolInfo)
Expand Down Expand Up @@ -57,7 +58,7 @@ test_getBlockWithPoint_EBB_at_tip =
mbEbb' <- ImmDB.getBlockWithPoint immDB (blockPoint ebb)
return $ mbEbb' @?= Just ebb
where
ebb = forgeGenesisEBB testCfg (SlotNo 0)
ebb = forgeEBB testCfg (SlotNo 0) (BlockNo 0) GenesisHash

withImmDB :: IOLike m => (ImmDB m ByronBlock -> m a) -> m a
withImmDB k = do
Expand Down

0 comments on commit 5574ed7

Please sign in to comment.