Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gov module adjustment #41

Merged
merged 2 commits into from
Apr 30, 2024
Merged

Add gov module adjustment #41

merged 2 commits into from
Apr 30, 2024

Conversation

dasanchez
Copy link
Collaborator

The current workflow is being tested:

Without the gov module adjustment, starting the node results in the following error:

gaiad-patched start --x-crisis-skip-assert-invariants --home .tinker
1:26PM INF starting node with ABCI Tendermint in-process module=server
1:26PM INF service start impl=multiAppConn module=proxy msg="Starting multiAppConn service"
1:26PM INF service start connection=query impl=localClient module=abci-client msg="Starting localClient service"
1:26PM INF service start connection=snapshot impl=localClient module=abci-client msg="Starting localClient service"
1:26PM INF service start connection=mempool impl=localClient module=abci-client msg="Starting localClient service"
1:26PM INF service start connection=consensus impl=localClient module=abci-client msg="Starting localClient service"
1:26PM INF service start impl=EventBus module=events msg="Starting EventBus service"
1:26PM INF service start impl=PubSub module=pubsub msg="Starting PubSub service"
1:26PM INF service start impl=IndexerService module=txindex msg="Starting IndexerService service"
1:26PM INF ABCI Handshake App Info hash= height=0 module=consensus protocol-version=0 software-version=testing/v15.2.0-secpr1-patch-dda2dfbf31d0a757e98073897c51f3c8c9487c93
1:26PM INF ABCI Replay Blocks appHeight=0 module=consensus stateHeight=0 storeHeight=0
1:26PM INF InitChain chainID=release-testnet initialHeight=21237986 module=server
1:26PM INF initializing blockchain state from genesis.json module=server
panic: expected module account was 100400uatom but we got 400uatom

goroutine 44 [running]:
github.com/cosmos/cosmos-sdk/x/gov.InitGenesis({{0x3589490, 0x4d272e0}, {0x359f2e0, 0xc001e384c0}, {{0x0, 0x0}, {0xc0024100a0, 0xf}, 0x14410e2, {0x0, ...}, ...}, ...}, ...)
	github.com/cosmos/[email protected]/x/gov/genesis.go:51 +0xa0b
github.com/cosmos/cosmos-sdk/x/gov.AppModule.InitGenesis({{{0x35b27e0, 0xc001064050}, {0x0, 0x0, 0x0}}, 0xc00038b3b0, {0x35894c8, 0xc000a968c0}, {0x71ac8a344218, 0xc000f78dc0}, ...}, ...)
	github.com/cosmos/[email protected]/x/gov/module.go:304 +0xf3
github.com/cosmos/cosmos-sdk/types/module.(*Manager).InitGenesis(_, {{0x3589490, 0x4d272e0}, {0x359f2e0, 0xc001e384c0}, {{0x0, 0x0}, {0xc0024100a0, 0xf}, 0x14410e2, ...}, ...}, ...)
	github.com/cosmos/[email protected]/types/module/module.go:357 +0x373
github.com/cosmos/gaia/v15/app.(*GaiaApp).InitChainer(_, {{0x3589490, 0x4d272e0}, {0x359f2e0, 0xc001e384c0}, {{0x0, 0x0}, {0xc0024100a0, 0xf}, 0x14410e2, ...}, ...}, ...)
	github.com/cosmos/gaia/v15/app/app.go:278 +0x195
github.com/cosmos/cosmos-sdk/baseapp.(*BaseApp).InitChain(0xc000a0c1e0, {{0x0, 0xed5830c36, 0x0}, {0xc0024100a0, 0xf}, 0xc001080180, {0xc000558480, 0x16, 0x16}, ...})
	github.com/cosmos/[email protected]/baseapp/abci.go:78 +0x515
github.com/cometbft/cometbft/abci/client.(*localClient).InitChainSync(0xc000d34900, {{0x0, 0xed5830c36, 0x0}, {0xc0024100a0, 0xf}, 0xc001080180, {0xc000558480, 0x16, 0x16}, ...})
	github.com/cometbft/[email protected]/abci/client/local_client.go:275 +0x102
github.com/cometbft/cometbft/proxy.(*appConnConsensus).InitChainSync(0xc00241a6c0, {{0x0, 0xed5830c36, 0x0}, {0xc0024100a0, 0xf}, 0xc001080180, {0xc000558480, 0x16, 0x16}, ...})
	github.com/cometbft/[email protected]/proxy/app_conn.go:85 +0x198
github.com/cometbft/cometbft/consensus.(*Handshaker).ReplayBlocksWithContext(_, {_, _}, {{{0xb, 0x0}, {0x295e209, 0x6}}, {0xc0024100a0, 0xf}, 0x14410e2, ...}, ...)
	github.com/cometbft/[email protected]/consensus/replay.go:336 +0xef8
github.com/cometbft/cometbft/consensus.(*Handshaker).HandshakeWithContext(0xc001430080, {0x3589880, 0x4d272e0}, {0x35a1870?, 0xc000ae6fc0?})
	github.com/cometbft/[email protected]/consensus/replay.go:274 +0x3b8
github.com/cometbft/cometbft/node.doHandshake({_, _}, {_, _}, {{{0xb, 0x0}, {0x295e209, 0x6}}, {0xc0024100a0, 0xf}, ...}, ...)
	github.com/cometbft/[email protected]/node/node.go:449 +0x1a8
github.com/cometbft/cometbft/node.NewNodeWithContext({0x3589880, 0x4d272e0}, 0xc0002fec60, {0x356cfe0, 0xc001211400}, 0xc0013f9690, {0x355bde0, 0xc00241a078}, 0x1?, 0x304a4b0, ...)
	github.com/cometbft/[email protected]/node/node.go:929 +0x55b
github.com/cometbft/cometbft/node.NewNode(0x0?, {0x356cfe0?, 0xc001211400?}, 0x0?, {0x355bde0?, 0xc00241a078?}, 0x1?, 0x4d272e0?, 0x0?, {0x3589458, ...}, ...)
	github.com/cometbft/[email protected]/node/node.go:849 +0xa9
github.com/cosmos/cosmos-sdk/server.startInProcess(_, {{0x0, 0x0, 0x0}, {0x35a04e0, 0xc000ddefc0}, 0x0, {0x0, 0x0}, {0x35b27e0, ...}, ...}, ...)
	github.com/cosmos/[email protected]/server/start.go:372 +0x6f7
github.com/cosmos/cosmos-sdk/server.StartCmd.func2.2()
	github.com/cosmos/[email protected]/server/start.go:153 +0x45
github.com/cosmos/cosmos-sdk/server.wrapCPUProfile.func2()
	github.com/cosmos/[email protected]/server/start.go:617 +0x22
created by github.com/cosmos/cosmos-sdk/server.wrapCPUProfile in goroutine 1
	github.com/cosmos/[email protected]/server/start.go:616 +0x22f

@dasanchez dasanchez merged commit f7e8795 into main Apr 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant