-
Notifications
You must be signed in to change notification settings - Fork 2
/
utils.go
47 lines (40 loc) · 1.3 KB
/
utils.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//nolint
package app
import (
"io"
"github.com/hdac-io/tendermint/libs/log"
dbm "github.com/tendermint/tm-db"
"github.com/hdac-io/friday/baseapp"
sdk "github.com/hdac-io/friday/types"
"github.com/hdac-io/friday/x/staking"
)
var (
genesisFile string
paramsFile string
exportParamsPath string
exportParamsHeight int
exportStatePath string
exportStatsPath string
seed int64
initialBlockHeight int
numBlocks int
blockSize int
enabled bool
verbose bool
lean bool
commit bool
period int
onOperation bool // TODO Remove in favor of binary search for invariant violation
allInvariants bool
genesisTime int64
)
// DONTCOVER
// NewFridayAppUNSAFE is used for debugging purposes only.
//
// NOTE: to not use this function with non-test code
func NewFridayAppUNSAFE(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool,
invCheckPeriod uint, baseAppOptions ...func(*baseapp.BaseApp),
) (fapp *FridayApp, keyMain, keyStaking *sdk.KVStoreKey, stakingKeeper staking.Keeper) {
fapp = NewFridayApp(logger, db, traceStore, loadLatest, invCheckPeriod, baseAppOptions...)
return fapp, fapp.keys[baseapp.MainStoreKey], fapp.keys[staking.StoreKey], fapp.stakingKeeper
}