Skip to content

Commit aded08d

Browse files
committed
f sp + variable name
1 parent 7428976 commit aded08d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lightning/src/onion_message/messenger.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,12 +598,12 @@ where
598598
let is_recipient_announced =
599599
network_graph.nodes().contains_key(&NodeId::from_pubkey(&recipient));
600600

601-
let (size_constrained, dummy_hopd_path_len) = match &context {
601+
let (size_constrained, path_len_incl_dummys) = match &context {
602602
MessageContext::Offers(OffersContext::InvoiceRequest { .. })
603603
| MessageContext::Offers(OffersContext::OutboundPaymentInRefund { .. }) => {
604-
// When embedding blinded paths within BOLT 12 objects which are generally embedded
605-
// in QR codes, we sadly need to be conservative about size, especially if the QR
606-
// code ultimately also includes an on-chain address.
604+
// When including blinded paths within BOLT 12 objects that appear in QR codes, we
605+
// sadly need to be conservative about size, especially if the QR code ultimately
606+
// also includes an on-chain address.
607607
(true, QR_CODED_DUMMY_HOPS_PATH_LENGTH)
608608
},
609609
MessageContext::Offers(OffersContext::StaticInvoiceRequested { .. }) => {
@@ -651,7 +651,7 @@ where
651651

652652
let build_path = |intermediate_hops: &[MessageForwardNode]| {
653653
// Calculate the dummy hops given the total hop count target (including the recipient).
654-
let dummy_hops_count = dummy_hopd_path_len.saturating_sub(intermediate_hops.len() + 1);
654+
let dummy_hops_count = path_len_incl_dummys.saturating_sub(intermediate_hops.len() + 1);
655655

656656
BlindedMessagePath::new_with_dummy_hops(
657657
intermediate_hops,

0 commit comments

Comments
 (0)