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),
3628
+
if outbound_htlc {"outbound"} else {"inbound"},&$htlc.payment_hash,
3629
3629
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"});
3630
3630
} else {
3631
3631
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());
3780
+
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);
1296
+
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);
1336
+
log_trace!(logger, " ...not including outbound HTLC {} (hash {}) with value {} due to state ({})", htlc.htlc_id, &htlc.payment_hash, htlc.amount_msat, state_name);
value_to_self_msat_offset -= htlc.amount_msat as i64;
@@ -2222,7 +2222,7 @@ impl<SP: Deref> Channel<SP> where
2222
2222
InboundHTLCState::LocalRemoved(ref reason) => {
2223
2223
if let &InboundHTLCRemovalReason::Fulfill(_) = reason {
2224
2224
} else {
2225
-
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()));
2225
+
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()));
2226
2226
debug_assert!(false, "Tried to fulfill an HTLC that was already failed");
2227
2227
}
2228
2228
return UpdateFulfillFetch::DuplicateClaim {};
@@ -2303,7 +2303,7 @@ impl<SP: Deref> Channel<SP> where
2303
2303
debug_assert!(false, "Have an inbound HTLC we tried to claim before it was fully committed to");
log_trace!(logger, "Upgrading HTLC {} to LocalRemoved with a Fulfill in channel {}!", log_bytes!(htlc.payment_hash.0), log_bytes!(self.context.channel_id));
2306
+
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 {
3332
3332
match forward_info {
3333
3333
PendingHTLCStatus::Fail(fail_msg) => {
3334
-
log_trace!(logger, " ...promoting inbound AwaitingAnnouncedRemoteRevoke {} to LocalRemoved due to PendingHTLCStatus indicating failure", log_bytes!(htlc.payment_hash.0));
3334
+
log_trace!(logger, " ...promoting inbound AwaitingAnnouncedRemoteRevoke {} to LocalRemoved due to PendingHTLCStatus indicating failure", &htlc.payment_hash);
3335
3335
require_commitment = true;
3336
3336
match fail_msg {
3337
3337
HTLCFailureMsg::Relay(msg) => {
@@ -3345,7 +3345,7 @@ impl<SP: Deref> Channel<SP> where
3345
3345
}
3346
3346
},
3347
3347
PendingHTLCStatus::Forward(forward_info) => {
3348
-
log_trace!(logger, " ...promoting inbound AwaitingAnnouncedRemoteRevoke {} to Committed", log_bytes!(htlc.payment_hash.0));
3348
+
log_trace!(logger, " ...promoting inbound AwaitingAnnouncedRemoteRevoke {} to Committed", &htlc.payment_hash);
0 commit comments