Upgrade to Stargate RC2

This commit is contained in:
Alex Peters
2020-11-03 18:20:26 +01:00
parent 1846f62f80
commit bf83c4476c
24 changed files with 569 additions and 511 deletions

View File

@@ -70,7 +70,7 @@ func TestFullAppSimulation(t *testing.T) {
require.NoError(t, os.RemoveAll(dir))
}()
app := NewWasmApp(logger, db, nil, true, map[int64]bool{}, "", simapp.FlagPeriodValue, wasm.EnableAllProposals, fauxMerkleModeOpt)
app := NewWasmApp(logger, db, nil, true, map[int64]bool{}, "", simapp.FlagPeriodValue, wasm.EnableAllProposals, EmptyAppOptions{}, fauxMerkleModeOpt)
require.Equal(t, appName, app.Name())
// run randomized simulation
@@ -83,6 +83,7 @@ func TestFullAppSimulation(t *testing.T) {
simapp.SimulationOperations(app, app.appCodec, config),
app.ModuleAccountAddrs(),
config,
app.appCodec,
)
// export state and simParams before the simulation error is checked
@@ -107,7 +108,7 @@ func TestAppImportExport(t *testing.T) {
require.NoError(t, os.RemoveAll(dir))
}()
app := NewWasmApp(logger, db, nil, true, map[int64]bool{}, "", simapp.FlagPeriodValue, wasm.EnableAllProposals, fauxMerkleModeOpt)
app := NewWasmApp(logger, db, nil, true, map[int64]bool{}, "", simapp.FlagPeriodValue, wasm.EnableAllProposals, EmptyAppOptions{}, fauxMerkleModeOpt)
require.Equal(t, appName, app.Name())
// Run randomized simulation
@@ -120,6 +121,7 @@ func TestAppImportExport(t *testing.T) {
simapp.SimulationOperations(app, app.appCodec, config),
app.ModuleAccountAddrs(),
config,
app.appCodec,
)
// export state and simParams before the simulation error is checked
@@ -146,7 +148,7 @@ func TestAppImportExport(t *testing.T) {
require.NoError(t, os.RemoveAll(newDir))
}()
newApp := NewWasmApp(log.NewNopLogger(), newDB, nil, true, map[int64]bool{}, "", simapp.FlagPeriodValue, wasm.EnableAllProposals, fauxMerkleModeOpt)
newApp := NewWasmApp(log.NewNopLogger(), newDB, nil, true, map[int64]bool{}, "", simapp.FlagPeriodValue, wasm.EnableAllProposals, EmptyAppOptions{}, fauxMerkleModeOpt)
require.Equal(t, appName, newApp.Name())
var genesisState GenesisState
@@ -203,7 +205,7 @@ func TestAppSimulationAfterImport(t *testing.T) {
require.NoError(t, os.RemoveAll(dir))
}()
app := NewWasmApp(logger, db, nil, true, map[int64]bool{}, "", simapp.FlagPeriodValue, wasm.EnableAllProposals, fauxMerkleModeOpt)
app := NewWasmApp(logger, db, nil, true, map[int64]bool{}, "", simapp.FlagPeriodValue, wasm.EnableAllProposals, EmptyAppOptions{}, fauxMerkleModeOpt)
require.Equal(t, appName, app.Name())
// Run randomized simulation
@@ -216,6 +218,7 @@ func TestAppSimulationAfterImport(t *testing.T) {
simapp.SimulationOperations(app, app.appCodec, config),
app.ModuleAccountAddrs(),
config,
app.appCodec,
)
// export state and simParams before the simulation error is checked
@@ -247,7 +250,7 @@ func TestAppSimulationAfterImport(t *testing.T) {
require.NoError(t, os.RemoveAll(newDir))
}()
newApp := NewWasmApp(log.NewNopLogger(), newDB, nil, true, map[int64]bool{}, "", simapp.FlagPeriodValue, wasm.EnableAllProposals, fauxMerkleModeOpt)
newApp := NewWasmApp(log.NewNopLogger(), newDB, nil, true, map[int64]bool{}, "", simapp.FlagPeriodValue, wasm.EnableAllProposals, EmptyAppOptions{}, fauxMerkleModeOpt)
require.Equal(t, appName, newApp.Name())
newApp.InitChain(abci.RequestInitChain{
@@ -263,6 +266,7 @@ func TestAppSimulationAfterImport(t *testing.T) {
simapp.SimulationOperations(newApp, newApp.appCodec, config),
newApp.ModuleAccountAddrs(),
config,
app.appCodec,
)
require.NoError(t, err)
}
@@ -296,7 +300,7 @@ func TestAppStateDeterminism(t *testing.T) {
db := dbm.NewMemDB()
app := NewWasmApp(logger, db, nil, true, map[int64]bool{}, "", simapp.FlagPeriodValue, wasm.EnableAllProposals, interBlockCacheOpt())
app := NewWasmApp(logger, db, nil, true, map[int64]bool{}, "", simapp.FlagPeriodValue, wasm.EnableAllProposals, EmptyAppOptions{}, interBlockCacheOpt())
fmt.Printf(
"running non-determinism simulation; seed %d: %d/%d, attempt: %d/%d\n",
@@ -312,6 +316,7 @@ func TestAppStateDeterminism(t *testing.T) {
simapp.SimulationOperations(app, app.appCodec, config),
app.ModuleAccountAddrs(),
config,
app.appCodec,
)
require.NoError(t, err)