@@ -468,11 +468,11 @@ impl ChannelDetails {
468
468
469
469
pub ( super ) fn from_channel_context < SP : Deref , F : Deref > (
470
470
context : & ChannelContext < SP > , best_block_height : u32 , latest_features : InitFeatures ,
471
- fee_estimator : & LowerBoundedFeeEstimator < F >
471
+ fee_estimator : & LowerBoundedFeeEstimator < F > ,
472
472
) -> Self
473
473
where
474
474
SP :: Target : SignerProvider ,
475
- F :: Target : FeeEstimator
475
+ F :: Target : FeeEstimator ,
476
476
{
477
477
let balance = context. get_available_balances ( fee_estimator) ;
478
478
let ( to_remote_reserve_satoshis, to_self_reserve_satoshis) =
@@ -490,15 +490,26 @@ impl ChannelDetails {
490
490
// Else `Channel::get_counterparty_htlc_minimum_msat` could return the
491
491
// default `0` value set by `Channel::new_outbound`.
492
492
outbound_htlc_minimum_msat : if context. have_received_message ( ) {
493
- Some ( context. get_counterparty_htlc_minimum_msat ( ) ) } else { None } ,
493
+ Some ( context. get_counterparty_htlc_minimum_msat ( ) )
494
+ } else {
495
+ None
496
+ } ,
494
497
outbound_htlc_maximum_msat : context. get_counterparty_htlc_maximum_msat ( ) ,
495
498
} ,
496
499
funding_txo : context. get_funding_txo ( ) ,
497
500
// Note that accept_channel (or open_channel) is always the first message, so
498
501
// `have_received_message` indicates that type negotiation has completed.
499
- channel_type : if context. have_received_message ( ) { Some ( context. get_channel_type ( ) . clone ( ) ) } else { None } ,
502
+ channel_type : if context. have_received_message ( ) {
503
+ Some ( context. get_channel_type ( ) . clone ( ) )
504
+ } else {
505
+ None
506
+ } ,
500
507
short_channel_id : context. get_short_channel_id ( ) ,
501
- outbound_scid_alias : if context. is_usable ( ) { Some ( context. outbound_scid_alias ( ) ) } else { None } ,
508
+ outbound_scid_alias : if context. is_usable ( ) {
509
+ Some ( context. outbound_scid_alias ( ) )
510
+ } else {
511
+ None
512
+ } ,
502
513
inbound_scid_alias : context. latest_inbound_scid_alias ( ) ,
503
514
channel_value_satoshis : context. get_value_satoshis ( ) ,
504
515
feerate_sat_per_1000_weight : Some ( context. get_feerate_sat_per_1000_weight ( ) ) ,
0 commit comments