Gracefully halt the node at certain block height works fine, but I am not too sure if this is normal behavior that the node can't be restarted to sync blocks after specifying halt-height=0.
Dec 2 09:13:21 ip-172-31-18-43 gaiad[701]: I[2019-12-02|09:13:21.921] starting ABCI with Tendermint module=main
Dec 2 09:13:22 ip-172-31-18-43 gaiad[701]: panic: state.AppHash does not match AppHash after replay. Got
Dec 2 09:13:22 ip-172-31-18-43 gaiad[701]: 9A9117C8C3859FB7D63D968F7E757840AAA0C077A1942CA4AC7F65A711C1860F, expected .
Dec 2 09:13:22 ip-172-31-18-43 gaiad[701]: State: {{{10 0} 0.32.7} gaia-13006 10 0 A6B0CD6774A61043F3CE7AAF3C9BBEAF462DEE5ACEAE8758FBA9CE8E12EAE9A3:1:1684DAD04B89 2019-08-20 18:13:22.889296243 +0000 UTC ValidatorSet{
Dec 2 09:13:22 ip-172-31-18-43 gaiad[701]: Proposer: Validator{4A34D913697AF5ED8D61C120E20178DFE234D70A PubKeyEd25519{FFE0064A296FED20269821373E78B6330C3915BCB4C0872F26CA9DA4D488B109} VP:210015 A:-953619}
................................................................................................
................................................................................................
................................................................................................
Dec 2 09:13:22 ip-172-31-18-43 gaiad[701]: Did you reset Tendermint without resetting your application's data?
Dec 2 09:13:22 ip-172-31-18-43 gaiad[701]: goroutine 1 [running]:
Dec 2 09:13:22 ip-172-31-18-43 gaiad[701]: github.com/tendermint/tendermint/consensus.assertAppHashEqualsOneFromState(0xc000b547c0, 0x20, 0x20, 0xa, 0x0, 0xc0004a5c36, 0x6, 0xc0004a5c50, 0xa, 0xa, ...)
Gaia v2.0.3 - Cosmos SDK v0.37.4
Gaia 13006 Testnet
halt-height = 100 in app.tomlhalt-height = 0 in app.tomlWrong Block Header App Hash error message.thanks @kogisin. Indeed, we shouldn't allow halt-height = 0 in the configuration (i.e the app should read the config and check it has a valid halt-height before starting)
@fedekunze Thanks for your quick response.
How about this case? This also fails to restart.
I assume halt-height is one-time use?
Can confirm this issue exists even with non-zero halt-height configuration. This idea was that this should typically be used once, although it's not out of the question I think to use it subsequently. i.e. we should support it.
I imagine it would work if you roll back by 1 block. In any case, I've opened a PR that fixes the problem.
Ah! Nice catch @kogisin :+1:
@alexanderbez
That is awesome ! I naturally thought that halt-height works more than once.
Btw, what command do you use to roll back by 1 block?
Btw, what command do you use to roll back by 1 block?
This doesn't exist yet in the SDK, but the code is out there somewhere. Waiting on the folks from the Regen team to upstream.
/cc @aaronc @ethanfrey
@alexanderbez see https://github.com/regen-network/cosmos-sdk/issues/6
Most helpful comment
@alexanderbez see https://github.com/regen-network/cosmos-sdk/issues/6