Expose storage of finality-verifier pallets. (#844)

* Expose storage of finality-verifier pallets.

* Fix compilation.
This commit is contained in:
Tomasz Drwięga
2021-03-25 20:37:46 +01:00
committed by Bastian Köcher
parent 70e9db4aad
commit 60c1c24784
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -379,8 +379,8 @@ construct_runtime!(
BridgeRialto: pallet_substrate_bridge::{Module, Call, Storage, Config<T>}, BridgeRialto: pallet_substrate_bridge::{Module, Call, Storage, Config<T>},
BridgeRialtoMessages: pallet_bridge_messages::{Module, Call, Storage, Event<T>}, BridgeRialtoMessages: pallet_bridge_messages::{Module, Call, Storage, Event<T>},
BridgeDispatch: pallet_bridge_dispatch::{Module, Event<T>}, BridgeDispatch: pallet_bridge_dispatch::{Module, Event<T>},
BridgeRialtoGrandpa: pallet_bridge_grandpa::{Module, Call}, BridgeRialtoGrandpa: pallet_bridge_grandpa::{Module, Call, Storage},
BridgeWestendGrandpa: pallet_bridge_grandpa::<Instance1>::{Module, Call, Config<T>}, BridgeWestendGrandpa: pallet_bridge_grandpa::<Instance1>::{Module, Call, Config<T>, Storage},
System: frame_system::{Module, Call, Config, Storage, Event<T>}, System: frame_system::{Module, Call, Config, Storage, Event<T>},
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage}, RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Module, Call, Storage},
Timestamp: pallet_timestamp::{Module, Call, Storage, Inherent}, Timestamp: pallet_timestamp::{Module, Call, Storage, Inherent},
+3 -3
View File
@@ -480,7 +480,7 @@ construct_runtime!(
BridgeRialtoCurrencyExchange: pallet_bridge_currency_exchange::<Instance1>::{Module, Call}, BridgeRialtoCurrencyExchange: pallet_bridge_currency_exchange::<Instance1>::{Module, Call},
BridgeKovanCurrencyExchange: pallet_bridge_currency_exchange::<Instance2>::{Module, Call}, BridgeKovanCurrencyExchange: pallet_bridge_currency_exchange::<Instance2>::{Module, Call},
BridgeMillau: pallet_substrate_bridge::{Module, Call, Storage, Config<T>}, BridgeMillau: pallet_substrate_bridge::{Module, Call, Storage, Config<T>},
BridgeGrandpa: pallet_bridge_grandpa::{Module, Call}, BridgeMillauGrandpa: pallet_bridge_grandpa::{Module, Call, Storage},
BridgeDispatch: pallet_bridge_dispatch::{Module, Event<T>}, BridgeDispatch: pallet_bridge_dispatch::{Module, Event<T>},
BridgeMillauMessages: pallet_bridge_messages::{Module, Call, Storage, Event<T>}, BridgeMillauMessages: pallet_bridge_messages::{Module, Call, Storage, Event<T>},
System: frame_system::{Module, Call, Config, Storage, Event<T>}, System: frame_system::{Module, Call, Config, Storage, Event<T>},
@@ -643,12 +643,12 @@ impl_runtime_apis! {
impl bp_millau::MillauFinalityApi<Block> for Runtime { impl bp_millau::MillauFinalityApi<Block> for Runtime {
fn best_finalized() -> (bp_millau::BlockNumber, bp_millau::Hash) { fn best_finalized() -> (bp_millau::BlockNumber, bp_millau::Hash) {
let header = BridgeGrandpa::best_finalized(); let header = BridgeMillauGrandpa::best_finalized();
(header.number, header.hash()) (header.number, header.hash())
} }
fn is_known_header(hash: bp_millau::Hash) -> bool { fn is_known_header(hash: bp_millau::Hash) -> bool {
BridgeGrandpa::is_known_header(hash) BridgeMillauGrandpa::is_known_header(hash)
} }
} }