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

x/order invariant broken #122

Closed
4 tasks
banishee opened this issue May 12, 2020 · 0 comments · Fixed by #137
Closed
4 tasks

x/order invariant broken #122

banishee opened this issue May 12, 2020 · 0 comments · Fixed by #137
Assignees
Labels
bug Something isn't working P1 bug level-critical x/order Changes, features and bugs related to the order module. x/token Changes, features and bugs related to the token module.

Comments

@banishee
Copy link
Contributor

banishee commented May 12, 2020

Summary of Bug

  • After stop all the nodes in a test network, I carried out the command okchaind export --for-zero-height, but it came out about a panic message
panic: invariant broken: order: locks invariant
        token ModuleAccount coins: 0.25919998okt
        sum of locks amounts:  


        CRITICAL please submit the following transaction:
                 tx crisis invariant-broken order module-account

goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/x/crisis/internal/keeper.Keeper.AssertInvariants(0xc000f32f00, 0xc, 0x10, 0xc000f3a070, 0x19ac3a0, 0xc0000849f0, 0x19ac3e0, 0xc000084a90, 0xc001da7140, 0x6, ...)
        /root/go/pkg/mod/github.com/okex/cosmos-sdk@v0.37.9-okchain1/x/crisis/internal/keeper/keeper.go:77 +0x572
github.com/okex/okchain/app.(*OKChainApp).prepForZeroHeightGenesis(0xc0000183d0, 0x19be620, 0xc000042088, 0x19d4420, 0xc00106b2c0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /root/go/src/github.com/okex/okchain/app/export.go:66 +0x185
github.com/okex/okchain/app.(*OKChainApp).ExportAppStateAndValidators(0xc0000183d0, 0xc0010de201, 0x2721de0, 0x0, 0x0, 0x0, 0xc8b001, 0x1, 0x0, 0x0, ...)
        /root/go/src/github.com/okex/okchain/app/export.go:25 +0x395
main.exportAppStateAndTMValidators(0x19bf0a0, 0xc0010de280, 0x19d74a0, 0xc0004ac3c8, 0x0, 0x0, 0xffffffffffffffff, 0x416f01, 0x2721de0, 0x0, ...)
        /root/go/src/github.com/okex/okchain/cmd/okchaind/main.go:92 +0x2c5
github.com/cosmos/cosmos-sdk/server.ExportCmd.func1(0xc000ff4f00, 0xc000fa9620, 0x0, 0x3, 0x0, 0x0)
        /root/go/pkg/mod/github.com/okex/cosmos-sdk@v0.37.9-okchain1/server/export.go:65 +0x2d7
github.com/spf13/cobra.(*Command).execute(0xc000ff4f00, 0xc000fa9590, 0x3, 0x3, 0xc000ff4f00, 0xc000fa9590)
        /root/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:826 +0x465
github.com/spf13/cobra.(*Command).ExecuteC(0xc000fd8280, 0x1575a53, 0xc000bd7ed0, 0xbf3424)
        /root/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:914 +0x2fc
github.com/spf13/cobra.(*Command).Execute(...)
        /root/go/pkg/mod/github.com/spf13/cobra@v0.0.5/command.go:864
github.com/tendermint/tendermint/libs/cli.Executor.Execute(0xc000fd8280, 0x17558c0, 0x1556854, 0x10)
        /root/go/pkg/mod/github.com/okex/tendermint@v0.32.10-okchain/libs/cli/setup.go:89 +0x3c
main.main()
        /root/go/src/github.com/okex/okchain/cmd/okchaind/main.go:64 +0x8df

image

Version

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@banishee banishee changed the title when execute the command ---- okchaind export, it arouse the panic when execute the command okchaind export, it arouse the panic May 12, 2020
@zhongqiuwood zhongqiuwood changed the title when execute the command okchaind export, it arouse the panic executing the command okchaind export leads to panic May 12, 2020
@zhongqiuwood zhongqiuwood added bug Something isn't working P1 bug level-critical x/order Changes, features and bugs related to the order module. x/token Changes, features and bugs related to the token module. labels May 13, 2020
@zhongqiuwood zhongqiuwood changed the title executing the command okchaind export leads to panic x/order invariant broken May 14, 2020
@zhongqiuwood zhongqiuwood linked a pull request May 15, 2020 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 bug level-critical x/order Changes, features and bugs related to the order module. x/token Changes, features and bugs related to the token module.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants