Skip to content

Commit f48a024

Browse files
Remove redundant log when paying BOLT 12 invoice.
We already log the error in channelmanager.
1 parent e8db681 commit f48a024

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -873,12 +873,7 @@ impl OutboundPayments {
873873
);
874874
onion_utils::set_max_path_length(
875875
&mut route_params, &RecipientOnionFields::spontaneous_empty(), None, best_block_height
876-
)
877-
.map_err(|()| {
878-
log_error!(logger, "Can't construct an onion packet without exceeding 1300-byte onion \
879-
hop_data length for payment with id {} and hash {}", payment_id, payment_hash);
880-
Bolt12PaymentError::OnionPacketSizeExceeded
881-
})?;
876+
).map_err(|()| Bolt12PaymentError::OnionPacketSizeExceeded)?;
882877

883878
if let Some(max_fee_msat) = max_total_routing_fee_msat {
884879
route_params.max_total_routing_fee_msat = Some(max_fee_msat);

0 commit comments

Comments
 (0)