Bump bridges (#2602)

* Squashed 'bridges/' changes from 0f6091d481..c9dd8b9dfc

c9dd8b9dfc expose test utilities to be used in BH paras (#2142)
334df22361 Ws-port argument has been repalced with rpc-port (#2140)
106173cb91 fix nodes startup (#2138)

git-subtree-dir: bridges
git-subtree-split: c9dd8b9dfc8b48014d119153032589ac39c18c9a

* tmp
This commit is contained in:
Branislav Kontur
2023-05-19 16:11:27 +02:00
committed by GitHub
parent 8756807964
commit a622388c3c
8 changed files with 15722 additions and 17 deletions
@@ -182,7 +182,11 @@ where
// update runtime storage
let (_, bridged_header_hash) = insert_header_to_grandpa_pallet::<R, FI>(state_root);
FromBridgedChainMessagesDeliveryProof { bridged_header_hash, storage_proof, lane }
FromBridgedChainMessagesDeliveryProof {
bridged_header_hash: bridged_header_hash.into(),
storage_proof,
lane,
}
}
/// Prepare proof of messages delivery for the `receive_messages_delivery_proof` call.
@@ -207,7 +211,11 @@ where
let (_, bridged_header_hash) =
insert_header_to_parachains_pallet::<R, PI, UnderlyingChainOf<BridgedChain<B>>>(state_root);
FromBridgedChainMessagesDeliveryProof { bridged_header_hash, storage_proof, lane }
FromBridgedChainMessagesDeliveryProof {
bridged_header_hash: bridged_header_hash.into(),
storage_proof,
lane,
}
}
/// Prepare in-memory message delivery proof, without inserting anything to the runtime storage.
@@ -60,7 +60,7 @@ where
TrieDBMutBuilderV1::<RelayBlockHasher>::new(&mut mdb, &mut state_root).build();
// insert parachain heads
for (i, parachain) in parachains.iter().enumerate() {
for (i, parachain) in parachains.into_iter().enumerate() {
let storage_key =
parachain_head_storage_key_at_source(R::ParasPalletName::get(), *parachain);
let leaf_data = if i == 0 {