You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log_trace!($logger,"Failing HTLC with payment_hash {} from {} counterparty commitment tx due to broadcast of {} commitment transaction {}, waiting for confirmation (at height {})",
if outbound_htlc {"outbound"} else {"inbound"},log_bytes!($htlc.payment_hash.0),
3627
+
if outbound_htlc {"outbound"} else {"inbound"},&$htlc.payment_hash,
3628
3628
if revocation_sig_claim {"revocation sig"} else {"preimage claim after we'd passed the HTLC resolution back. We can likely claim the HTLC output with a revocation claim"});
3629
3629
} else {
3630
3630
log_info!(logger,"Input spending {} ({}:{}) in {} resolves {} HTLC with payment hash {} with {}",
log_info!(logger,"Failing HTLC with payment_hash {} timeout by a spend tx, waiting for confirmation (at height {})",log_bytes!(payment_hash.0), entry.confirmation_threshold());
3779
+
log_info!(logger,"Failing HTLC with payment_hash {} timeout by a spend tx, waiting for confirmation (at height {})",&payment_hash, entry.confirmation_threshold());
log_trace!(logger, " ...not including inbound HTLC {} (hash {}) with value {} due to state ({})", htlc.htlc_id, log_bytes!(htlc.payment_hash.0), htlc.amount_msat, state_name);
1309
+
log_trace!(logger, " ...not including inbound HTLC {} (hash {}) with value {} due to state ({})", htlc.htlc_id, &htlc.payment_hash, htlc.amount_msat, state_name);
log_trace!(logger, " ...not including outbound HTLC {} (hash {}) with value {} due to state ({})", htlc.htlc_id, log_bytes!(htlc.payment_hash.0), htlc.amount_msat, state_name);
1349
+
log_trace!(logger, " ...not including outbound HTLC {} (hash {}) with value {} due to state ({})", htlc.htlc_id, &htlc.payment_hash, htlc.amount_msat, state_name);
if let &InboundHTLCRemovalReason::Fulfill(_) = reason {
2243
2243
} else {
2244
-
log_warn!(logger, "Have preimage and want to fulfill HTLC with payment hash {} we already failed against channel {}", log_bytes!(htlc.payment_hash.0), log_bytes!(self.context.channel_id()));
2244
+
log_warn!(logger, "Have preimage and want to fulfill HTLC with payment hash {} we already failed against channel {}", &htlc.payment_hash, log_bytes!(self.context.channel_id()));
2245
2245
debug_assert!(false, "Tried to fulfill an HTLC that was already failed");
log_trace!(logger, "Upgrading HTLC {} to LocalRemoved with a Fulfill in channel {}!", log_bytes!(htlc.payment_hash.0), log_bytes!(self.context.channel_id));
2325
+
log_trace!(logger, "Upgrading HTLC {} to LocalRemoved with a Fulfill in channel {}!", &htlc.payment_hash, log_bytes!(self.context.channel_id));
} else if let InboundHTLCState::AwaitingAnnouncedRemoteRevoke(forward_info) = state {
3348
3348
match forward_info {
3349
3349
PendingHTLCStatus::Fail(fail_msg) => {
3350
-
log_trace!(logger, " ...promoting inbound AwaitingAnnouncedRemoteRevoke {} to LocalRemoved due to PendingHTLCStatus indicating failure", log_bytes!(htlc.payment_hash.0));
3350
+
log_trace!(logger, " ...promoting inbound AwaitingAnnouncedRemoteRevoke {} to LocalRemoved due to PendingHTLCStatus indicating failure", &htlc.payment_hash);
0 commit comments