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
@@ -60,7 +60,7 @@ pub type FromMillauMessageDispatch =
|
||||
bp_rialto::Rialto,
|
||||
bp_millau::Millau,
|
||||
crate::xcm_config::OnRialtoBlobDispatcher,
|
||||
bridge_runtime_common::messages_xcm_extension::XcmRouterWeigher<crate::DbWeight>,
|
||||
(),
|
||||
>;
|
||||
|
||||
/// Messages proof for Millau -> Rialto messages.
|
||||
|
||||
@@ -189,18 +189,15 @@ mod tests {
|
||||
use super::*;
|
||||
use crate::{
|
||||
millau_messages::{FromMillauMessageDispatch, XCM_LANE},
|
||||
DbWeight, WithMillauMessagesInstance,
|
||||
WithMillauMessagesInstance,
|
||||
};
|
||||
use bp_messages::{
|
||||
target_chain::{DispatchMessage, DispatchMessageData, MessageDispatch},
|
||||
LaneId, MessageKey,
|
||||
};
|
||||
use bridge_runtime_common::messages_xcm_extension::{
|
||||
XcmBlobMessageDispatchResult, XcmRouterWeigher,
|
||||
};
|
||||
use bridge_runtime_common::messages_xcm_extension::XcmBlobMessageDispatchResult;
|
||||
use codec::Encode;
|
||||
use pallet_bridge_messages::OutboundLanes;
|
||||
use sp_core::Get;
|
||||
use xcm_executor::XcmExecutor;
|
||||
|
||||
fn new_test_ext() -> sp_io::TestExternalities {
|
||||
@@ -263,10 +260,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn xcm_messages_from_millau_are_dispatched() {
|
||||
let mut incoming_message = prepare_inbound_bridge_message();
|
||||
|
||||
let dispatch_weight = FromMillauMessageDispatch::dispatch_weight(&mut incoming_message);
|
||||
assert_eq!(dispatch_weight, XcmRouterWeigher::<DbWeight>::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
|
||||
|
||||
Reference in New Issue
Block a user