Skip to content

Commit

Permalink
added more relay and message-lane pallet logs (paritytech#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatonik authored and serban300 committed Apr 9, 2024
1 parent 76fc573 commit 518c13f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
12 changes: 9 additions & 3 deletions bridges/modules/message-lane/src/instant_payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,20 @@ where
);

// we can't actually do anything here, because rewards are paid as a part of unrelated transaction
if let Err(error) = pay_result {
frame_support::debug::trace!(
match pay_result {
Ok(_) => frame_support::debug::trace!(
target: "runtime",
"Rewarded relayer {:?} with {:?}",
relayer,
reward,
),
Err(error) => frame_support::debug::trace!(
target: "runtime",
"Failed to pay relayer {:?} reward {:?}: {:?}",
relayer,
reward,
error,
);
),
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions bridges/relays/substrate/src/headers_pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ pub async fn run<SourceChain, TargetChain, P>(
source_justifications,
);

log::info!(
target: "bridge",
"Starting {} -> {} headers relay",
SourceChain::NAME,
TargetChain::NAME,
);

headers_relay::sync_loop::run(
HeadersSource::new(source_client),
SourceChain::AVERAGE_BLOCK_INTERVAL,
Expand Down
6 changes: 6 additions & 0 deletions bridges/relays/substrate/src/millau_messages_to_rialto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ pub fn run(
relayer_id_at_source: relayer_id_at_millau,
};

log::info!(
target: "bridge",
"Starting Millau -> Rialto messages relay. Millau relayer account id: {:?}",
lane.relayer_id_at_source,
);

messages_relay::message_lane_loop::run(
messages_relay::message_lane_loop::Params {
lane: lane_id,
Expand Down
6 changes: 6 additions & 0 deletions bridges/relays/substrate/src/rialto_messages_to_millau.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ pub fn run(
relayer_id_at_source: relayer_id_at_rialto,
};

log::info!(
target: "bridge",
"Starting Rialto -> Millau messages relay. Rialto relayer account id: {:?}",
lane.relayer_id_at_source,
);

messages_relay::message_lane_loop::run(
messages_relay::message_lane_loop::Params {
lane: lane_id,
Expand Down

0 comments on commit 518c13f

Please sign in to comment.