-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_helper.go
40 lines (39 loc) · 1.04 KB
/
test_helper.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
package app
//
//func setup(withGenesis bool, invCheckPeriod uint) (*Chain, GenesisState) {
// db := dbm.NewMemDB()
// app := NewChain(log.NewNopLogger(), db, nil, nil)
// if withGenesis {
// return app, NewDefaultGenesisState(encCdc.Marshaler)
// }
// return app, GenesisState{}
//}
//
//// Setup initializes a new SimApp. A Nop logger is set in SimApp.
//func Setup(isCheckTx bool) *Chain {
// app, genesisState := setup(!isCheckTx, 5)
// if !isCheckTx {
// // init chain must be called to stop deliverState from being nil
// stateBytes, err := json.MarshalIndent(genesisState, "", " ")
// if err != nil {
// panic(err)
// }
//
// // Initialize the chain
// app.InitChain(
// abci.RequestInitChain{
// Validators: []abci.ValidatorUpdate{},
// ConsensusParams: DefaultConsensusParams,
// AppStateBytes: stateBytes,
// },
// )
// }
//
// return app
//}
//
//
//// NewDefaultGenesisState generates the default state for the application.
//func NewDefaultGenesisState() GenesisState {
// return module.ModuleBasics.DefaultGenesis()
//}