diff options
Diffstat (limited to 'ledger/perf_test.go')
-rw-r--r-- | ledger/perf_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ledger/perf_test.go b/ledger/perf_test.go index 908a90f0a..c1e520fef 100644 --- a/ledger/perf_test.go +++ b/ledger/perf_test.go @@ -36,8 +36,11 @@ import ( ) func genesis(naccts int) (InitState, []basics.Address, []*crypto.SignatureSecrets) { + return genesisWithProto(naccts, protocol.ConsensusCurrentVersion) +} +func genesisWithProto(naccts int, proto protocol.ConsensusVersion) (InitState, []basics.Address, []*crypto.SignatureSecrets) { blk := bookkeeping.Block{} - blk.CurrentProtocol = protocol.ConsensusCurrentVersion + blk.CurrentProtocol = proto blk.BlockHeader.GenesisID = "test" blk.FeeSink = testSinkAddr blk.RewardsPool = testPoolAddr |