@@ -3215,7 +3215,7 @@ where
3215
3215
/// [`internal_closing_signed`]: Self::internal_closing_signed
3216
3216
fn get_channel_update_for_unicast(&self, chan: &Channel<SP>) -> Result<msgs::ChannelUpdate, LightningError> {
3217
3217
let logger = WithChannelContext::from(&self.logger, &chan.context);
3218
- log_trace!(logger, "Attempting to generate channel update for channel {}", log_bytes!( chan.context.channel_id().0 ));
3218
+ log_trace!(logger, "Attempting to generate channel update for channel {}", chan.context.channel_id());
3219
3219
let short_channel_id = match chan.context.get_short_channel_id().or(chan.context.latest_inbound_scid_alias()) {
3220
3220
None => return Err(LightningError{err: "Channel not yet established".to_owned(), action: msgs::ErrorAction::IgnoreError}),
3221
3221
Some(id) => id,
@@ -3226,7 +3226,7 @@ where
3226
3226
3227
3227
fn get_channel_update_for_onion(&self, short_channel_id: u64, chan: &Channel<SP>) -> Result<msgs::ChannelUpdate, LightningError> {
3228
3228
let logger = WithChannelContext::from(&self.logger, &chan.context);
3229
- log_trace!(logger, "Generating channel update for channel {}", log_bytes!( chan.context.channel_id().0 ));
3229
+ log_trace!(logger, "Generating channel update for channel {}", chan.context.channel_id());
3230
3230
let were_node_one = self.our_network_pubkey.serialize()[..] < chan.context.get_counterparty_node_id().serialize()[..];
3231
3231
3232
3232
let enabled = chan.context.is_usable() && match chan.channel_update_status() {
@@ -6987,7 +6987,7 @@ where
6987
6987
},
6988
6988
hash_map::Entry::Vacant(_) => {
6989
6989
log_debug!(logger, "Sending bogus ChannelReestablish for unknown channel {} to force channel closure",
6990
- log_bytes!( msg.channel_id.0) );
6990
+ msg.channel_id);
6991
6991
// Unfortunately, lnd doesn't force close on errors
6992
6992
// (https://github.com/lightningnetwork/lnd/blob/abb1e3463f3a83bbb843d5c399869dbe930ad94f/htlcswitch/link.go#L2119).
6993
6993
// One of the few ways to get an lnd counterparty to force close is by
@@ -10425,7 +10425,7 @@ where
10425
10425
hash_map::Entry::Occupied(mut entry) => {
10426
10426
let newly_added = entry.get_mut().insert(session_priv_bytes, &path);
10427
10427
log_info!(logger, "{} a pending payment path for {} msat for session priv {} on an existing pending payment with payment hash {}",
10428
- if newly_added { "Added" } else { "Had" }, path_amt, log_bytes!(session_priv_bytes), log_bytes!( htlc.payment_hash.0) );
10428
+ if newly_added { "Added" } else { "Had" }, path_amt, log_bytes!(session_priv_bytes), htlc.payment_hash);
10429
10429
},
10430
10430
hash_map::Entry::Vacant(entry) => {
10431
10431
let path_fee = path.fee_msat();
0 commit comments