Bridge: added force_set_pallet_state call to pallet-bridge-grandpa (#4465)
closes https://github.com/paritytech/parity-bridges-common/issues/2963 See issue above for rationale I've been thinking about adding similar calls to other pallets, but: - for parachains pallet I haven't been able to think of a case when we will need that given how long referendum takes. I.e. if storage proof format changes and we want to unstuck the bridge, it'll take a large a few weeks to sync a single parachain header, then another weeks for another and etc. - for messages pallet I've made the similar call initially, but it just changes a storage key (`OutboundLanes` and/or `InboundLanes`), so there's no any logic here and it may be simply done using `system.set_storage`. --------- Co-authored-by: command-bot <>
Showing
- bridges/modules/grandpa/src/benchmarking.rs 14 additions, 0 deletionsbridges/modules/grandpa/src/benchmarking.rs
- bridges/modules/grandpa/src/lib.rs 160 additions, 18 deletionsbridges/modules/grandpa/src/lib.rs
- bridges/modules/grandpa/src/weights.rs 49 additions, 0 deletionsbridges/modules/grandpa/src/weights.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/pallet_bridge_grandpa.rs 34 additions, 14 deletions...bs/bridge-hub-rococo/src/weights/pallet_bridge_grandpa.rs
- cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/weights/pallet_bridge_grandpa.rs 35 additions, 13 deletions...s/bridge-hub-westend/src/weights/pallet_bridge_grandpa.rs
- prdoc/pr_4465.prdoc 19 additions, 0 deletionsprdoc/pr_4465.prdoc
Please register or sign in to comment