Skip to content

Commit 93a8fb6

Browse files
committed
f - log even tlv numbers
1 parent f67795f commit 93a8fb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4804,8 +4804,8 @@ where
48044804

48054805
if let Some(RecipientOnionFields { ref custom_tlvs, .. }) = payment.onion_fields {
48064806
if !custom_tlvs_known && custom_tlvs.iter().any(|(typ, _)| typ % 2 == 0) {
4807-
log_info!(self.logger, "Cannot accept payment with unknown even TLVs. Rejecting payment with payment hash {}",
4808-
log_bytes!(payment_hash.0));
4807+
log_info!(self.logger, "Rejecting payment with payment hash {} as we cannot accept payment with unknown even TLVs: {}",
4808+
log_bytes!(payment_hash.0), log_iter!(custom_tlvs.iter().map(|(typ, _)| typ).filter(|typ| *typ % 2 == 0)));
48094809
claimable_payments.pending_claiming_payments.remove(&payment_hash);
48104810
mem::drop(claimable_payments);
48114811
for htlc in payment.htlcs {

0 commit comments

Comments
 (0)