Unstuck Snowbridge#313
Conversation
|
@acatangiu the migration is roughly doing the same as the |
system-parachains/bridge-hubs/bridge-hub-polkadot/src/bridge_to_ethereum_unstuck.rs
Outdated
Show resolved
Hide resolved
system-parachains/bridge-hubs/bridge-hub-polkadot/src/bridge_to_ethereum_unstuck.rs
Outdated
Show resolved
Hide resolved
system-parachains/bridge-hubs/bridge-hub-polkadot/src/bridge_to_ethereum_unstuck.rs
Outdated
Show resolved
Hide resolved
| } | ||
|
|
||
| fn is_bridge_stuck() -> bool { | ||
| LatestFinalizedBlockRoot::<Runtime>::get() == LAST_IMPORTED_BEACON_HEADER.into() |
There was a problem hiding this comment.
We expect that this LAST_IMPORTED_BEACON_HEADER will not be reimported, yes?
(I guess the checkpoint is from a block newer than that)
Should be ok as long as it fits a block. |
…o_ethereum_unstuck.rs Co-authored-by: Adrian Catangiu <adrian@parity.io>
…o_ethereum_unstuck.rs Co-authored-by: Adrian Catangiu <adrian@parity.io>
…o_ethereum_unstuck.rs Co-authored-by: Adrian Catangiu <adrian@parity.io>
Yeah this is fine, is well below the block limit. And we know it works because our initial governance proposal already executed a |
system-parachains/bridge-hubs/bridge-hub-polkadot/src/bridge_to_ethereum_unstuck.rs
Outdated
Show resolved
Hide resolved
acatangiu
left a comment
There was a problem hiding this comment.
Migration code looks good, also validated that the new checkpoint leads to https://beaconscan.com/slot/9094528.
Check is_bridge_upgraded at post_upgrade phase
|
/merge |
|
Enabled Available commands
For more information see the documentation |
Upgrades Snowbridge with an Ethereum client fixes:
Adds a migration to reset the Ethereum checkpoint. Will be reset again to the moment recent checkpoint before merged.
TODO: