Closed mpoke closed 2 years ago
The issue was introduced somewhere between commits https://github.com/cosmos/cosmos-sdk/commit/57f5633fcaee355a0626bae119a00c825b5e3d5e and https://github.com/cosmos/cosmos-sdk/commit/b293d64ea1b434f0474fbfa4b7340c1bbdd3aef2 (see https://github.com/cosmos/cosmos-sdk/commits/interchain-security-rebase). It's hard to identify the exact commit since the ones in between do not build.
The test fails because the ModuleAccountInvariants
is broken, i.e., https://github.com/cosmos/cosmos-sdk/blob/c783aea68fbd856c2b188b2d467a7fa5cb4df1e6/x/staking/keeper/invariants.go#L80. Also, the test that is failing is TestAppImportExport
, which first exports the state and then imports it back.
Found a problem
If we fix it will bring us closer but it might not be the only problem.
This is visible in this PR https://github.com/cosmos/cosmos-sdk/pull/12537, i.e.,
Running the above command on the https://github.com/cosmos/cosmos-sdk/tree/interchain-security-rebase branch results in errors, i.e.,