Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Seid Rollback state mismatch error (#557)
## Describe your changes and provide context This PR will fix a bug where SeiDB rollback will report errors or failure due to it was using a wrong commitInfo after rollback. ## Testing performed to validate your change Will fix the errors like this: ``` Rolled back app state to height 118546578 and hash 2338A536D9EA0FAF1D80ADE8569D5340BCF2665C12137974E45B85D32D6F073D panic: Application state height does not match the tendermint state height goroutine 1 [running]: github.com/cosmos/cosmos-sdk/server.NewRollbackCmd.func1(0xc00089fa00?, {0xc000620e20?, 0x0?, 0x1?}) /root/go/pkg/mod/github.com/sei-protocol/[email protected]/server/rollback.go:68 +0x5ce github.com/spf13/cobra.(*Command).execute(0xc0001e0000, {0xc000620e00, 0x1, 0x1}) /root/go/pkg/mod/github.com/spf13/[email protected]/command.go:916 +0x87c github.com/spf13/cobra.(*Command).ExecuteC(0xc000005500) /root/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044 +0x3a5 github.com/spf13/cobra.(*Command).Execute(...) /root/go/pkg/mod/github.com/spf13/[email protected]/command.go:968 github.com/spf13/cobra.(*Command).ExecuteContext(...) /root/go/pkg/mod/github.com/spf13/[email protected]/command.go:961 github.com/cosmos/cosmos-sdk/server/cmd.Execute(0x4d0b068?, {0xc00021c5d0, 0xa}) /root/go/pkg/mod/github.com/sei-protocol/[email protected]/server/cmd/execute.go:35 +0x145 main.main() /home/ubuntu/sei-chain/cmd/seid/main.go:16 +0x2b ```
- Loading branch information