Skip to content

Commit 7fd358f

Browse files
shaspitzjstr1121yaruwangway
authored
feat: standalone to consumer changeover part 1 (cosmos#757)
* on-chain upgrade to consumer chain wip * add preCCV store and use it on democracy staking * add TODOs and one more packet possibility * status update * Resolve hermes start issue for trusted validator set by changing revision height * remove intermediary logs * remove further unused codebase * updates for endblocker test, existing test fixes, get last validators * update for slashing sovereign validators for the fault made before consumer chain upgrade height * resolve comments on github and slack communication * update sovereign app to use v4 ibc from v3 & resolve consumer module merge conflict fix issue * Update app/sovereign/upgrades/v3/upgrades.go Co-authored-by: yaruwangway <[email protected]> * rm sovereign chain and tests. Will be replaced by simapp and integration tests * duplicate module name * add comment * small rename * remove democracy staking changes * consumer ccv beginblock, endblock, and initgenesis order shouldn't matter * add mock calls to compile * adjust tests for new keeper field * add registerDemocConsumer method * split out preCCV flag and initial valset * cleanup consumer module * cleanup * more cleanup * temp changes to validators.go * comment out test * rm bad code from merge * comment * Update app.go * UTs for CRUD * UTs for keys * use make for mocks * todo * changeover method and test * resolve cosmos#783 * comment * comments * add appropriate TODOs, restore changes to main * final nits before non-draft * comment on ChangeoverToConsumer * more clear comment * small comment change * update InitGenesis comment * sovereign -> standalone * missed a file * builds now * update comment after debug * naming refactor * edge case for val in old and new sets * restore keys after rebase --------- Co-authored-by: jstr1121 <[email protected]> Co-authored-by: jstr1121 <[email protected]> Co-authored-by: yaruwangway <[email protected]>
1 parent 46f568f commit 7fd358f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

proto/interchain_security/ccv/consumer/v1/genesis.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ message GenesisState {
4040
// LastTransmissionBlockHeight nil on new chain, filled in on restart.
4141
interchain_security.ccv.consumer.v1.LastTransmissionBlockHeight last_transmission_block_height = 12
4242
[ (gogoproto.nullable) = false ];
43+
bool preCCV = 13; // flag indicating whether the consumer CCV module starts in pre-CCV state
4344
}
4445

4546
// HeightValsetUpdateID defines the genesis information for the mapping

0 commit comments

Comments
 (0)