Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More traces + remove signer override in RialtoParachain -> Millau bridge #1727

Merged
merged 1 commit into from
Dec 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion bin/runtime-common/src/refund_relayer_extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,18 @@ where
Some(CallType::Delivery(extract_messages_state::<R, GI, MI, LID>(call)?))
};

Ok(parse_call_type().map(|call_type| PreDispatchData { relayer: who.clone(), call_type }))
Ok(parse_call_type()
.map(|call_type| {
log::trace!(
target: "runtime::bridge",
"RefundRelayerForMessagesFromParachain from parachain {} via {:?} parsed bridge transaction in pre-dispatch: {:?}",
PID::get(),
LID::get(),
call_type,
);
PreDispatchData { relayer: who.clone(), call_type }
})
)
}

fn post_dispatch(
Expand Down Expand Up @@ -340,6 +351,15 @@ where
// finally - register reward in relayers pallet
RelayersPallet::<R>::register_relayer_reward(LID::get(), &relayer, reward);

log::trace!(
target: "runtime::bridge",
"RefundRelayerForMessagesFromParachain from parachain {} via {:?} has registered {:?} reward: {:?}",
PID::get(),
LID::get(),
relayer,
reward,
);

Ok(())
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ sleep 6
--millau-host millau-node-alice \
--millau-port 9944 \
--millau-signer $MILLAU_RELAY_ACCOUNT \
--rialto-headers-to-millau-signer $MILLAU_RELAY_ACCOUNT_HEADERS_OVERRIDE \
--millau-messages-pallet-owner=//RialtoParachain.MessagesOwner \
--millau-transactions-mortality=64 \
--rialto-parachain-host rialto-parachain-collator-charlie \
Expand Down