mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 07:31:02 +00:00
Added receive_single_message_proof_with_dispatch benchmark (#1990)
* added receive_single_message_proof_with_dispatch benchmark * clippy
This commit is contained in:
committed by
Bastian Köcher
parent
a75c28d5b2
commit
830afff353
@@ -844,12 +844,10 @@ mod tests {
|
||||
LaneId, MessageKey,
|
||||
};
|
||||
use bridge_runtime_common::{
|
||||
integrity::check_additional_signed,
|
||||
messages_xcm_extension::{XcmBlobMessageDispatchResult, XcmRouterWeigher},
|
||||
integrity::check_additional_signed, messages_xcm_extension::XcmBlobMessageDispatchResult,
|
||||
};
|
||||
use codec::Encode;
|
||||
use pallet_bridge_messages::OutboundLanes;
|
||||
use sp_core::Get;
|
||||
use sp_runtime::generic::Era;
|
||||
use xcm_executor::XcmExecutor;
|
||||
|
||||
@@ -914,10 +912,7 @@ mod tests {
|
||||
#[test]
|
||||
fn xcm_messages_from_millau_are_dispatched() {
|
||||
new_test_ext().execute_with(|| {
|
||||
let mut incoming_message = prepare_inbound_bridge_message();
|
||||
|
||||
let dispatch_weight = FromMillauMessageDispatch::dispatch_weight(&mut incoming_message);
|
||||
assert_eq!(dispatch_weight, XcmRouterWeigher::<()>::get());
|
||||
let incoming_message = prepare_inbound_bridge_message();
|
||||
|
||||
// we care only about handing message to the XCM dispatcher, so we don't care about its
|
||||
// actual dispatch
|
||||
|
||||
@@ -63,7 +63,7 @@ pub type FromMillauMessageDispatch =
|
||||
bp_rialto_parachain::RialtoParachain,
|
||||
bp_millau::Millau,
|
||||
crate::OnRialtoParachainBlobDispatcher,
|
||||
bridge_runtime_common::messages_xcm_extension::XcmRouterWeigher<()>,
|
||||
(),
|
||||
>;
|
||||
|
||||
/// Messages proof for Millau -> RialtoParachain messages.
|
||||
|
||||
Reference in New Issue
Block a user