@@ -218,8 +218,8 @@ import Pos.Util.Util (leftToPanic)
218
218
import Serokell.Data.Memory.Units (Byte )
219
219
220
220
import Test.Pos.Crypto.Gen (genAbstractHash , genDecShare , genHDAddressPayload ,
221
- genProtocolMagic , genProxySignature , genPublicKey ,
222
- genRedeemPublicKey , genRedeemSignature , genSafeSigner ,
221
+ genProxySignature , genPublicKey , genRedeemPublicKey ,
222
+ genRedeemSignature , genRequiresNetworkMagic , genSafeSigner ,
223
223
genSecretKey , genSignTag , genSignature , genVssPublicKey )
224
224
225
225
@@ -494,6 +494,7 @@ genCoreConfiguration pm =
494
494
CoreConfiguration
495
495
<$> genGenesisConfiguration pm
496
496
<*> genWord8
497
+ <*> genRequiresNetworkMagic
497
498
498
499
----------------------------------------------------------------------------
499
500
-- Pos.Core.Delegation Generators
@@ -542,7 +543,7 @@ genGenesisData pm =
542
543
<*> genGenesisVssCertificatesMap pm
543
544
<*> genGenesisNonAvvmBalances
544
545
<*> genBlockVersionDataByTxFP genLinearTxFP
545
- <*> genGenesisProtocolConstants
546
+ <*> genGenesisProtocolConstants pm
546
547
<*> genGenesisAvvmBalances
547
548
<*> genSharedSeed
548
549
where
@@ -586,11 +587,11 @@ genGenesisInitializer =
586
587
<*> Gen. bool
587
588
<*> Gen. integral (Range. constant 0 10 )
588
589
589
- genGenesisProtocolConstants :: Gen GenesisProtocolConstants
590
- genGenesisProtocolConstants =
590
+ genGenesisProtocolConstants :: ProtocolMagic -> Gen GenesisProtocolConstants
591
+ genGenesisProtocolConstants pm =
591
592
GenesisProtocolConstants
592
593
<$> Gen. int (Range. constant 0 100 )
593
- <*> genProtocolMagic
594
+ <*> pure pm
594
595
<*> genVssMaxTTL
595
596
<*> genVssMinTTL
596
597
@@ -602,7 +603,7 @@ genGenesisSpec pm = mkGenSpec >>= either (error . toText) pure
602
603
<*> genSharedSeed
603
604
<*> genGenesisDelegation pm
604
605
<*> genBlockVersionData
605
- <*> genGenesisProtocolConstants
606
+ <*> genGenesisProtocolConstants pm
606
607
<*> genGenesisInitializer
607
608
608
609
genTestnetBalanceOptions :: Gen TestnetBalanceOptions
0 commit comments