Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
CBR-482: Fix build error in Bench.Pos.Criterion.Block.Logic
Browse files Browse the repository at this point in the history
  • Loading branch information
intricate authored and erikd committed Feb 18, 2019
1 parent 8868619 commit 8f83aa7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions generator/bench/Bench/Pos/Criterion/Block/Logic.hs
Expand Up @@ -14,9 +14,9 @@ import Serokell.Util.Verify (isVerSuccess)
import System.Random (newStdGen)

import Pos.AllSecrets (mkAllSecretsSimple)
import Pos.Chain.Block (Block, VerifyBlockParams (..),
VerifyHeaderParams (..), getBlockHeader, verifyBlock,
verifyHeader)
import Pos.Chain.Block (Block, ConsensusEraLeaders (..),
VerifyBlockParams (..), VerifyHeaderParams (..),
getBlockHeader, verifyBlock, verifyHeader)
import Pos.Chain.Genesis as Genesis (Config (..),
FakeAvvmOptions (..), GenesisInitializer (..),
TestnetBalanceOptions (..), configBlockVersionData,
Expand Down Expand Up @@ -195,7 +195,9 @@ verifyHeaderBenchmark !genesisConfig !secretKeys !tp =
, _bgpTxpGlobalSettings =
txpGlobalSettings genesisConfig (_tpTxpConfiguration tp)
}
leaders <- lrcActionOnEpochReason epoch "genBlock" getLeadersForEpoch
leaders <-
OriginalLeaders
<$> lrcActionOnEpochReason epoch "genBlock" getLeadersForEpoch
mblock <- flip evalRandT g $ do
blockGenCtx <- lift $ mkBlockGenContext
(configEpochSlots genesisConfig)
Expand All @@ -212,7 +214,6 @@ verifyHeaderBenchmark !genesisConfig !secretKeys !tp =
, vhpMaxSize = Nothing
, vhpVerifyNoUnknown = False
, vhpConsensusEra = Original
, vhpLastBlkSlotsAndK = Nothing
}
let !params = VerifyBlockParams
{ vbpVerifyHeader = verifyHeaderParams
Expand Down

0 comments on commit 8f83aa7

Please sign in to comment.