@@ -374,7 +374,7 @@ fn filter_channels(channels: Vec<ChannelDetails>, min_inbound_capacity_msat: Opt
374
374
proportional_millionths: forwarding_info. fee_proportional_millionths,
375
375
} ,
376
376
cltv_expiry_delta: forwarding_info. cltv_expiry_delta,
377
- htlc_minimum_msat: Some ( channel. inbound_htlc_minimum_msat) ,
377
+ htlc_minimum_msat: channel. inbound_htlc_minimum_msat,
378
378
htlc_maximum_msat: channel. inbound_htlc_maximum_msat, } ] )
379
379
} ;
380
380
// If all channels are private, return the route hint for the highest inbound capacity channel
@@ -502,7 +502,7 @@ mod test {
502
502
assert_eq ! ( invoice. route_hints( ) [ 0 ] . 0 . len( ) , 1 ) ;
503
503
assert_eq ! ( invoice. route_hints( ) [ 0 ] . 0 [ 0 ] . short_channel_id, chan. inbound_scid_alias. unwrap( ) ) ;
504
504
505
- assert_eq ! ( invoice. route_hints( ) [ 0 ] . 0 [ 0 ] . htlc_minimum_msat, Some ( chan. inbound_htlc_minimum_msat) ) ;
505
+ assert_eq ! ( invoice. route_hints( ) [ 0 ] . 0 [ 0 ] . htlc_minimum_msat, chan. inbound_htlc_minimum_msat) ;
506
506
assert_eq ! ( invoice. route_hints( ) [ 0 ] . 0 [ 0 ] . htlc_maximum_msat, chan. inbound_htlc_maximum_msat) ;
507
507
508
508
let payment_params = PaymentParameters :: from_node_id ( invoice. recover_payee_pub_key ( ) )
@@ -868,11 +868,11 @@ mod test {
868
868
let invoice = :: utils:: create_phantom_invoice :: < EnforcingSigner , & test_utils:: TestKeysInterface > ( Some ( payment_amt) , "test" . to_string ( ) , payment_hash, payment_secret, route_hints, & nodes[ 1 ] . keys_manager , Currency :: BitcoinTestnet ) . unwrap ( ) ;
869
869
870
870
let chan_0_1 = & nodes[ 1 ] . node . list_usable_channels ( ) [ 0 ] ;
871
- assert_eq ! ( invoice. route_hints( ) [ 0 ] . 0 [ 0 ] . htlc_minimum_msat, Some ( chan_0_1. inbound_htlc_minimum_msat) ) ;
871
+ assert_eq ! ( invoice. route_hints( ) [ 0 ] . 0 [ 0 ] . htlc_minimum_msat, chan_0_1. inbound_htlc_minimum_msat) ;
872
872
assert_eq ! ( invoice. route_hints( ) [ 0 ] . 0 [ 0 ] . htlc_maximum_msat, chan_0_1. inbound_htlc_maximum_msat) ;
873
873
874
874
let chan_0_2 = & nodes[ 2 ] . node . list_usable_channels ( ) [ 0 ] ;
875
- assert_eq ! ( invoice. route_hints( ) [ 1 ] . 0 [ 0 ] . htlc_minimum_msat, Some ( chan_0_2. inbound_htlc_minimum_msat) ) ;
875
+ assert_eq ! ( invoice. route_hints( ) [ 1 ] . 0 [ 0 ] . htlc_minimum_msat, chan_0_2. inbound_htlc_minimum_msat) ;
876
876
assert_eq ! ( invoice. route_hints( ) [ 1 ] . 0 [ 0 ] . htlc_maximum_msat, chan_0_2. inbound_htlc_maximum_msat) ;
877
877
}
878
878
0 commit comments