mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-21 05:11:02 +00:00
Backport xcm bridging extensions to the bridge repo (#1813)
* Backport xcm bridging extensions to the bridge repo * Fixes * Fixes
This commit is contained in:
committed by
Bastian Köcher
parent
89e8c6fddf
commit
a1c6502d9a
@@ -497,7 +497,7 @@ pub mod target {
|
||||
let weight = XcmWeigher::weight(&mut payload.xcm.1);
|
||||
let weight = weight.unwrap_or_else(|e| {
|
||||
log::debug!(
|
||||
target: "runtime::bridge-dispatch",
|
||||
target: crate::LOG_TARGET_BRIDGE_DISPATCH,
|
||||
"Failed to compute dispatch weight of incoming XCM message {:?}/{}: {:?}",
|
||||
message.key.lane_id,
|
||||
message.key.nonce,
|
||||
@@ -525,7 +525,7 @@ pub mod target {
|
||||
let FromBridgedChainMessagePayload { xcm: (location, xcm), weight: weight_limit } =
|
||||
message.data.payload?;
|
||||
log::trace!(
|
||||
target: "runtime::bridge-dispatch",
|
||||
target: crate::LOG_TARGET_BRIDGE_DISPATCH,
|
||||
"Going to execute message {:?} (weight limit: {:?}): {:?} {:?}",
|
||||
message_id,
|
||||
weight_limit,
|
||||
@@ -551,7 +551,7 @@ pub mod target {
|
||||
match xcm_outcome {
|
||||
Ok(outcome) => {
|
||||
log::trace!(
|
||||
target: "runtime::bridge-dispatch",
|
||||
target: crate::LOG_TARGET_BRIDGE_DISPATCH,
|
||||
"Incoming message {:?} dispatched with result: {:?}",
|
||||
message_id,
|
||||
outcome,
|
||||
@@ -560,7 +560,7 @@ pub mod target {
|
||||
Ok(_weight) => (),
|
||||
Err(e) => {
|
||||
log::error!(
|
||||
target: "runtime::bridge-dispatch",
|
||||
target: crate::LOG_TARGET_BRIDGE_DISPATCH,
|
||||
"Incoming message {:?} was not dispatched, error: {:?}",
|
||||
message_id,
|
||||
e,
|
||||
@@ -570,7 +570,7 @@ pub mod target {
|
||||
},
|
||||
Err(e) => {
|
||||
log::error!(
|
||||
target: "runtime::bridge-dispatch",
|
||||
target: crate::LOG_TARGET_BRIDGE_DISPATCH,
|
||||
"Incoming message {:?} was not dispatched, codec error: {:?}",
|
||||
message_id,
|
||||
e,
|
||||
|
||||
Reference in New Issue
Block a user