Skip to content

Commit

Permalink
Unstuck Snowbridge (polkadot-fellows#313)
Browse files Browse the repository at this point in the history
Upgrades Snowbridge with an Ethereum client fixes: 
- paritytech/polkadot-sdk#4504
- paritytech/polkadot-sdk#4482

Adds a migration to reset the Ethereum checkpoint. Will be reset again
to the moment recent checkpoint before merged.

TODO:
- [x] Check migration works
- [x] Check converting Sync Committee to prepared keys is OK for a
migration

---------

Co-authored-by: Adrian Catangiu <[email protected]>
Co-authored-by: Vincent Geddes <[email protected]>
Co-authored-by: ron <[email protected]>
  • Loading branch information
4 people authored May 19, 2024
1 parent 03d2571 commit 2f8a10e
Show file tree
Hide file tree
Showing 5 changed files with 128 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

- Include patch to release stuck collator bonds ([polkadot-fellows/runtimes#289](https://github.com/polkadot-fellows/runtimes/pull/289))
- Safeguard pallet-balances against consumer ref underflow ([polkadot-fellows/runtimes#309](https://github.com/polkadot-fellows/runtimes/pull/309))
- Polkadot Bridge Hub: Unstuck Snowbridge ([polkadot-fellows/runtimes#313](https://github.com/polkadot-fellows/runtimes/pull/313))

## [1.2.3] 29.04.2024

Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ smallvec = { version = "1.13.1" }
snowbridge-beacon-primitives = { version = "0.1.0", default-features = false }
snowbridge-core = { version = "0.1.1", default-features = false }
snowbridge-outbound-queue-runtime-api = { version = "0.1.1", default-features = false }
snowbridge-pallet-ethereum-client = { version = "0.1.1", default-features = false }
snowbridge-pallet-ethereum-client = { version = "0.1.2", default-features = false }
snowbridge-pallet-inbound-queue = { version = "0.1.1", default-features = false }
snowbridge-pallet-inbound-queue-fixtures = { version = "0.9.0" }
snowbridge-pallet-outbound-queue = { version = "0.1.1", default-features = false }
Expand Down

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions system-parachains/bridge-hubs/bridge-hub-polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));

pub mod bridge_to_ethereum_config;
mod bridge_to_ethereum_unstuck;
pub mod bridge_to_kusama_config;
mod bridge_to_kusama_unstuck;
mod weights;
Expand Down Expand Up @@ -149,6 +150,7 @@ pub type Migrations = (
ConstU32<ASSET_HUB_ID>,
>,
bridge_to_kusama_unstuck::BridgeToKusamaUnstuck,
bridge_to_ethereum_unstuck::UnstuckSnowbridge,
pallet_collator_selection::migration::v2::MigrationToV2<Runtime>,
// permanent
pallet_xcm::migration::MigrateToLatestXcmVersion<Runtime>,
Expand Down

0 comments on commit 2f8a10e

Please sign in to comment.