cosmos / interchain-security

Interchain Security is an open sourced IBC application which allows cosmos blockchains to lease their proof-of-stake security to one another.
https://cosmos.github.io/interchain-security/
Other
156 stars 126 forks source link

Ensure unbonding ops cannot complete during initialization #27

Closed mpoke closed 2 years ago

mpoke commented 2 years ago

During the initialization period, the consumer chain has the same initial validator set V1. To keep the security model of Tendermint, none of the validators in V1 should be able to unbond any amount of their stake during this period. In other words, no unbonding delegation would complete during the CCV initialization protocol.

This feature would enable CCV to guarantee the following invariant that would preserve the security model of Tendermint on the consumer chains:

This feature can be easily added to the current implementation.

mpoke commented 2 years ago

A fix for this issue is specified in https://github.com/cosmos/ibc/pull/646

danwt commented 2 years ago

Nice work. I have a one thought

Could we just send multiple packets instead?

EDIT: I see in the code it is done with multiple packets 👍