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

Commit 8f83aa7

Browse files
intricateerikd
authored andcommitted
CBR-482: Fix build error in Bench.Pos.Criterion.Block.Logic
1 parent 8868619 commit 8f83aa7

File tree

1 file changed

+6
-5
lines changed
  • generator/bench/Bench/Pos/Criterion/Block

1 file changed

+6
-5
lines changed

generator/bench/Bench/Pos/Criterion/Block/Logic.hs

+6-5
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import Serokell.Util.Verify (isVerSuccess)
1414
import System.Random (newStdGen)
1515

1616
import Pos.AllSecrets (mkAllSecretsSimple)
17-
import Pos.Chain.Block (Block, VerifyBlockParams (..),
18-
VerifyHeaderParams (..), getBlockHeader, verifyBlock,
19-
verifyHeader)
17+
import Pos.Chain.Block (Block, ConsensusEraLeaders (..),
18+
VerifyBlockParams (..), VerifyHeaderParams (..),
19+
getBlockHeader, verifyBlock, verifyHeader)
2020
import Pos.Chain.Genesis as Genesis (Config (..),
2121
FakeAvvmOptions (..), GenesisInitializer (..),
2222
TestnetBalanceOptions (..), configBlockVersionData,
@@ -195,7 +195,9 @@ verifyHeaderBenchmark !genesisConfig !secretKeys !tp =
195195
, _bgpTxpGlobalSettings =
196196
txpGlobalSettings genesisConfig (_tpTxpConfiguration tp)
197197
}
198-
leaders <- lrcActionOnEpochReason epoch "genBlock" getLeadersForEpoch
198+
leaders <-
199+
OriginalLeaders
200+
<$> lrcActionOnEpochReason epoch "genBlock" getLeadersForEpoch
199201
mblock <- flip evalRandT g $ do
200202
blockGenCtx <- lift $ mkBlockGenContext
201203
(configEpochSlots genesisConfig)
@@ -212,7 +214,6 @@ verifyHeaderBenchmark !genesisConfig !secretKeys !tp =
212214
, vhpMaxSize = Nothing
213215
, vhpVerifyNoUnknown = False
214216
, vhpConsensusEra = Original
215-
, vhpLastBlkSlotsAndK = Nothing
216217
}
217218
let !params = VerifyBlockParams
218219
{ vbpVerifyHeader = verifyHeaderParams

0 commit comments

Comments
 (0)