File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ async fn on_htlc_accepted(
445445
446446 // Safe unwrap(): we already checked that `extra_tlvs` exists.
447447 let extra_tlvs = req. htlc . extra_tlvs . unwrap ( ) ;
448- let deducted_amt = match extra_tlvs. get_tu64 ( 65537 ) ? {
448+ let deducted_amt = match extra_tlvs. get_u64 ( 65537 ) ? {
449449 Some ( amt) => amt,
450450 None => {
451451 warn ! ( "htlc is missing the extra_fee amount" ) ;
Original file line number Diff line number Diff line change @@ -559,7 +559,7 @@ impl<A: ClnApi> HtlcAcceptedHookHandler<A> {
559559 // G) We got a working channel, deduct fee and forward htlc.
560560 let deducted_amt_msat = req. htlc . amount_msat . msat ( ) - opening_fee;
561561 let mut payload = req. onion . payload . clone ( ) ;
562- payload. set_tu64 ( TLV_FORWARD_AMT , deducted_amt_msat) ;
562+ payload. set_u64 ( TLV_FORWARD_AMT , deducted_amt_msat) ;
563563
564564 // It is okay to unwrap the next line as we do not have duplicate entries.
565565 let payload_bytes = payload. to_bytes ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments