@@ -42,16 +42,23 @@ func FakeKey(n idx.ValidatorID) *ecdsa.PrivateKey {
42
42
return evmcore .FakeKey (uint32 (n ))
43
43
}
44
44
45
- func FakeGenesisStore (num idx.Validator , balance , stake * big.Int ) * genesisstore.Store {
46
- return FakeGenesisStoreWithRules (num , balance , stake , opera .FakeNetRules ())
45
+ func FakeGenesisStore (num idx.Validator , balance , stake * big.Int , stateDbCacheCapacity int ) * genesisstore.Store {
46
+ return FakeGenesisStoreWithRules (num , balance , stake , opera .FakeNetRules (), stateDbCacheCapacity )
47
47
}
48
48
49
- func FakeGenesisStoreWithRules (num idx.Validator , balance , stake * big.Int , rules opera.Rules ) * genesisstore.Store {
50
- return FakeGenesisStoreWithRulesAndStart (num , balance , stake , rules , 2 , 1 )
49
+ func FakeGenesisStoreWithRules (num idx.Validator , balance , stake * big.Int , rules opera.Rules , stateDbCacheCapacity int ) * genesisstore.Store {
50
+ return FakeGenesisStoreWithRulesAndStart (num , balance , stake , rules , 2 , 1 , stateDbCacheCapacity )
51
51
}
52
52
53
- func FakeGenesisStoreWithRulesAndStart (num idx.Validator , balance , stake * big.Int , rules opera.Rules , epoch idx.Epoch , block idx.Block ) * genesisstore.Store {
54
- builder := makegenesis .NewGenesisBuilder ()
53
+ func FakeGenesisStoreWithRulesAndStart (
54
+ num idx.Validator ,
55
+ balance , stake * big.Int ,
56
+ rules opera.Rules ,
57
+ epoch idx.Epoch ,
58
+ block idx.Block ,
59
+ stateDbCacheCapacity int ,
60
+ ) * genesisstore.Store {
61
+ builder := makegenesis .NewGenesisBuilder (stateDbCacheCapacity )
55
62
56
63
validators := GetFakeValidators (num )
57
64
0 commit comments