@@ -15,7 +15,7 @@ use crate::ln::channelmanager::{
1515 BlindedFailure , BlindedForward , HTLCFailureMsg , PendingHTLCInfo , PendingHTLCRouting ,
1616 CLTV_FAR_FAR_AWAY , MIN_CLTV_EXPIRY_DELTA ,
1717} ;
18- use crate :: ln:: msgs:: { self , accountable_into_bool } ;
18+ use crate :: ln:: msgs;
1919use crate :: ln:: onion_utils;
2020use crate :: ln:: onion_utils:: { HTLCFailReason , LocalHTLCFailureReason , ONION_DATA_LEN } ;
2121use crate :: sign:: { NodeSigner , Recipient } ;
@@ -267,7 +267,7 @@ pub(super) fn create_fwd_pending_htlc_info(
267267 outgoing_amt_msat : amt_to_forward,
268268 outgoing_cltv_value,
269269 skimmed_fee_msat : None ,
270- incoming_accountable : accountable_into_bool ( msg. accountable ) ,
270+ incoming_accountable : msg. accountable . unwrap_or ( false ) ,
271271 } )
272272}
273273
@@ -523,7 +523,7 @@ where
523523 create_recv_pending_htlc_info (
524524 hop, shared_secret, msg. payment_hash , msg. amount_msat , msg. cltv_expiry ,
525525 None , allow_skimmed_fees, msg. skimmed_fee_msat ,
526- accountable_into_bool ( msg. accountable ) , cur_height,
526+ msg. accountable . unwrap_or ( false ) , cur_height,
527527 ) ?
528528 }
529529 } )
0 commit comments