Skip to content

Commit d26fd39

Browse files
committed
f remove log_v1_funding_channel_id macro
1 parent bb36eb1 commit d26fd39

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ use crate::ln::msgs;
2626
use crate::ln::msgs::{ChannelMessageHandler, LightningError, SocketAddress, OnionMessageHandler, RoutingMessageHandler};
2727
#[cfg(not(c_bindings))]
2828
use crate::ln::channelmanager::{SimpleArcChannelManager, SimpleRefChannelManager};
29+
use crate::util::macro_logger::DebugFundingChannelId;
2930
use crate::util::ser::{VecWriter, Writeable, Writer};
3031
use crate::ln::peer_channel_encryptor::{PeerChannelEncryptor, NextNoiseStep, MessageBuf, MSG_BUF_ALLOC_SIZE};
3132
use crate::ln::wire;
@@ -2008,7 +2009,7 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, OM: Deref, L: Deref, CM
20082009
log_debug!(WithContext::from(&self.logger, Some(*node_id), Some(msg.temporary_channel_id)), "Handling SendFundingCreated event in peer_handler for node {} for channel {} (which becomes {})",
20092010
log_pubkey!(node_id),
20102011
&msg.temporary_channel_id,
2011-
log_v1_funding_channel_id!(msg.funding_txid, msg.funding_output_index));
2012+
DebugFundingChannelId(&msg.funding_txid, msg.funding_output_index));
20122013
// TODO: If the peer is gone we should generate a DiscardFunding event
20132014
// indicating to the wallet that they should just throw away this funding transaction
20142015
self.enqueue_message(&mut *get_peer_for_forwarding!(node_id), msg);

lightning/src/util/macro_logger.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ impl<'a> core::fmt::Display for DebugFundingChannelId<'a> {
4545
ChannelId::v1_from_funding_outpoint(OutPoint { txid: self.0.clone(), index: self.1 }).fmt(f)
4646
}
4747
}
48-
macro_rules! log_v1_funding_channel_id {
49-
($funding_txid: expr, $funding_txo: expr) => {
50-
$crate::util::macro_logger::DebugFundingChannelId(&$funding_txid, $funding_txo)
51-
}
52-
}
5348

5449
pub(crate) struct DebugFundingInfo<'a>(pub &'a ChannelId);
5550
impl<'a> core::fmt::Display for DebugFundingInfo<'a> {

0 commit comments

Comments
 (0)