Seid mainnet fresh install fails to run with divide by zero error
Seid version
name: sei
server_name:
- cosmossdk.io/[email protected]
- filippo.io/[email protected]
- github.com/99designs/[email protected]
Chain ID pacific-1
Describe the bug
- seid init
--chain-id pacific-1 - wget mainnet genesis and replace
- seid start
gives error: panic: recovered: runtime error: integer divide by zero
runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:24 +0x5e github.com/cosmos/cosmos-sdk/baseapp.NewBaseApp.newDefaultRecoveryMiddleware.func1({0x2607080?, 0x4ef9620}) /root/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/recovery.go:91 +0x26 github.com/cosmos/cosmos-sdk/baseapp.NewBaseApp.newDefaultRecoveryMiddleware.newRecoveryMiddleware.func2({0x2607080?, 0x4ef9620?}) /root/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/recovery.go:40 +0x2d github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x2607080, 0x4ef9620}, 0xc00090ede0?) /root/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/recovery.go:29 +0x2f github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x2607080, 0x4ef9620}, 0x7372656b726f7701?) /root/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/recovery.go:34 +0x53 github.com/cosmos/cosmos-sdk/baseapp.processRecovery({0x2607080, 0x4ef9620}, 0x7830282967616c46?) /root/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/recovery.go:34 +0x53 github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).runTx.func1() /root/go/pkg/mod/github.com/sei-protocol/[email protected]/baseapp/baseapp.go:894 +0x36d panic({0x2607080?, 0x4ef9620?}) /usr/local/go/src/runtime/panic.go:920 +0x270 github.com/cosmos/cosmos-sdk/x/auth/ante.SetUpContextDecorator.AnteHandle.func1() /root/go/pkg/mod/github.com/sei-protocol/[email protected]/x/auth/ante/setup.go:69 +0x1d8 panic({0x2607080?, 0x4ef9620?}) /usr/local/go/src/runtime/panic.go:914 +0x21f github.com/cosmos/cosmos-sdk/store/types.(*infiniteMultiplierGasMeter).adjustGas(...) /root/go/pkg/mod/github.com/sei-protocol/[email protected]/store/types/gas.go:289 github.com/cosmos/cosmos-sdk/store/types.(*infiniteMultiplierGasMeter).ConsumeGas(0x18?, 0x1?, {0x29bf3fb?, 0x15?}) /root/go/pkg/mod/github.com/sei-protocol/[email protected]/store/types/gas.go:293 +0x50 github.com/cosmos/cosmos-sdk/store/gaskv.(*Store).Get(0xc000acc180, {0xc000c08330, 0x15, 0x18}) /root/go/pkg/mod/github.com/sei-protocol/[email protected]/store/gaskv/store.go:42 +0x4a
Issue may have been resolved by changing to sei-db:
Read modify and write app.toml if sei-db is selected
if db_choice == "2":
with open(app_config_path, 'r') as file:
app_data = file.read()
app_data = app_data.replace('sc-enable = false', 'sc-enable = true')
app_data = app_data.replace('ss-enable = false', 'ss-enable = true')
with open(app_config_path, 'w') as file:
file.write(app_data)
I assume this was solved by correcting the config file. Can reopen if not.