Skip to content

Commit bfeded7

Browse files
committed
rename channelmanager-utils to onion_payment
1 parent 3df33e1 commit bfeded7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ use crate::ln::features::Bolt11InvoiceFeatures;
4949
use crate::routing::gossip::NetworkGraph;
5050
use crate::routing::router::{BlindedTail, DefaultRouter, InFlightHtlcs, Path, Payee, PaymentParameters, Route, RouteParameters, Router};
5151
use crate::routing::scoring::{ProbabilisticScorer, ProbabilisticScoringFeeParameters};
52-
use crate::ln::channelmanager_utils::{check_incoming_htlc_cltv, create_recv_pending_htlc_info, create_fwd_pending_htlc_info, decode_incoming_update_add_htlc_onion, InboundOnionErr, NextPacketDetails};
52+
use crate::ln::onion_payment::{check_incoming_htlc_cltv, create_recv_pending_htlc_info, create_fwd_pending_htlc_info, decode_incoming_update_add_htlc_onion, InboundOnionErr, NextPacketDetails};
5353
use crate::ln::msgs;
5454
use crate::ln::onion_utils;
5555
use crate::ln::onion_utils::HTLCFailReason;
@@ -130,7 +130,7 @@ pub enum PendingHTLCRouting {
130130
/// Used to track when we should expire pending HTLCs that go unclaimed.
131131
incoming_cltv_expiry: u32,
132132
/// Shared secret derived using a phantom node secret key. If this field is Some, the
133-
/// payment was sent to a phantom node (one hop behond the current node), but can be
133+
/// payment was sent to a phantom node (one hop beyond the current node), but can be
134134
/// settled by this node.
135135
phantom_shared_secret: Option<[u8; 32]>,
136136
/// See [`RecipientOnionFields::custom_tlvs`] for more info.

lightning/src/ln/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#[macro_use]
1414
pub mod functional_test_utils;
1515

16-
pub mod channelmanager_utils;
16+
pub mod onion_payment;
1717
pub mod channelmanager;
1818
pub mod inbound_payment;
1919
pub mod msgs;

0 commit comments

Comments
 (0)