@@ -7,7 +7,7 @@ use bech32::ToBase32;
7
7
use bitcoin_hashes:: Hash ;
8
8
use lightning:: chain;
9
9
use lightning:: chain:: chaininterface:: { BroadcasterInterface , FeeEstimator } ;
10
- use lightning:: chain :: keysinterface :: { Recipient , NodeSigner , SignerProvider , EntropySource } ;
10
+ use lightning:: sign :: { Recipient , NodeSigner , SignerProvider , EntropySource } ;
11
11
use lightning:: ln:: { PaymentHash , PaymentSecret } ;
12
12
use lightning:: ln:: channelmanager:: { ChannelDetails , ChannelManager , MIN_FINAL_CLTV_EXPIRY_DELTA } ;
13
13
use lightning:: ln:: channelmanager:: { PhantomRouteHints , MIN_CLTV_EXPIRY_DELTA } ;
@@ -50,7 +50,7 @@ use core::time::Duration;
50
50
/// invoices in its `sign_invoice` implementation ([`PhantomKeysManager`] satisfies this
51
51
/// requirement).
52
52
///
53
- /// [`PhantomKeysManager`]: lightning::chain::keysinterface ::PhantomKeysManager
53
+ /// [`PhantomKeysManager`]: lightning::sign ::PhantomKeysManager
54
54
/// [`ChannelManager::get_phantom_route_hints`]: lightning::ln::channelmanager::ChannelManager::get_phantom_route_hints
55
55
/// [`ChannelManager::create_inbound_payment`]: lightning::ln::channelmanager::ChannelManager::create_inbound_payment
56
56
/// [`ChannelManager::create_inbound_payment_for_hash`]: lightning::ln::channelmanager::ChannelManager::create_inbound_payment_for_hash
@@ -107,7 +107,7 @@ where
107
107
/// invoices in its `sign_invoice` implementation ([`PhantomKeysManager`] satisfies this
108
108
/// requirement).
109
109
///
110
- /// [`PhantomKeysManager`]: lightning::chain::keysinterface ::PhantomKeysManager
110
+ /// [`PhantomKeysManager`]: lightning::sign ::PhantomKeysManager
111
111
/// [`ChannelManager::get_phantom_route_hints`]: lightning::ln::channelmanager::ChannelManager::get_phantom_route_hints
112
112
/// [`ChannelManager::create_inbound_payment`]: lightning::ln::channelmanager::ChannelManager::create_inbound_payment
113
113
/// [`ChannelManager::create_inbound_payment_for_hash`]: lightning::ln::channelmanager::ChannelManager::create_inbound_payment_for_hash
@@ -227,7 +227,7 @@ where
227
227
/// * Select up to three channels per node.
228
228
/// * Select one hint from each node, up to three hints or until we run out of hints.
229
229
///
230
- /// [`PhantomKeysManager`]: lightning::chain::keysinterface ::PhantomKeysManager
230
+ /// [`PhantomKeysManager`]: lightning::sign ::PhantomKeysManager
231
231
fn select_phantom_hints < L : Deref > ( amt_msat : Option < u64 > , phantom_route_hints : Vec < PhantomRouteHints > ,
232
232
logger : L ) -> Vec < RouteHint >
233
233
where
@@ -629,7 +629,7 @@ fn sort_and_filter_channels<L: Deref>(
629
629
// previous channel to avoid announcing non-public channels.
630
630
let new_now_public = channel. is_public && !entry. get ( ) . is_public ;
631
631
// Decide whether we prefer the currently selected channel with the node to the new one,
632
- // based on their inbound capacity.
632
+ // based on their inbound capacity.
633
633
let prefer_current = prefer_current_channel ( min_inbound_capacity_msat, current_max_capacity,
634
634
channel. inbound_capacity_msat ) ;
635
635
// If the public-ness of the channel has not changed (in which case simply defer to
@@ -768,7 +768,7 @@ mod test {
768
768
use crate :: { Currency , Description , InvoiceDescription , SignOrCreationError , CreationError } ;
769
769
use bitcoin_hashes:: { Hash , sha256} ;
770
770
use bitcoin_hashes:: sha256:: Hash as Sha256 ;
771
- use lightning:: chain :: keysinterface :: PhantomKeysManager ;
771
+ use lightning:: sign :: PhantomKeysManager ;
772
772
use lightning:: events:: { MessageSendEvent , MessageSendEventsProvider , Event } ;
773
773
use lightning:: ln:: { PaymentPreimage , PaymentHash } ;
774
774
use lightning:: ln:: channelmanager:: { PhantomRouteHints , MIN_FINAL_CLTV_EXPIRY_DELTA , PaymentId , RecipientOnionFields , Retry } ;
@@ -793,10 +793,10 @@ mod test {
793
793
794
794
// Minimum set, prefer candidate channel over minimum + buffer.
795
795
assert_eq ! ( crate :: utils:: prefer_current_channel( Some ( 100 ) , 105 , 125 ) , false ) ;
796
-
796
+
797
797
// Minimum set, both channels sufficient, prefer smaller current channel.
798
798
assert_eq ! ( crate :: utils:: prefer_current_channel( Some ( 100 ) , 115 , 125 ) , true ) ;
799
-
799
+
800
800
// Minimum set, both channels sufficient, prefer smaller candidate channel.
801
801
assert_eq ! ( crate :: utils:: prefer_current_channel( Some ( 100 ) , 200 , 160 ) , false ) ;
802
802
0 commit comments