@@ -7291,7 +7291,7 @@ where
72917291 Some(phantom_shared_secret),
72927292 false,
72937293 None,
7294- incoming_accountable,
7294+ incoming_accountable.unwrap_or(false) ,
72957295 current_height,
72967296 );
72977297 match create_res {
@@ -19329,7 +19329,7 @@ mod tests {
1932919329 if let Err(crate::ln::channelmanager::InboundHTLCErr { reason, .. }) =
1933019330 create_recv_pending_htlc_info(hop_data, [0; 32], PaymentHash([0; 32]),
1933119331 sender_intended_amt_msat - extra_fee_msat - 1, 42, None, true, Some(extra_fee_msat),
19332- None , current_height)
19332+ false , current_height)
1933319333 {
1933419334 assert_eq!(reason, LocalHTLCFailureReason::FinalIncorrectHTLCAmount);
1933519335 } else { panic!(); }
@@ -19352,7 +19352,7 @@ mod tests {
1935219352 let current_height: u32 = node[0].node.best_block.read().unwrap().height;
1935319353 assert!(create_recv_pending_htlc_info(hop_data, [0; 32], PaymentHash([0; 32]),
1935419354 sender_intended_amt_msat - extra_fee_msat, 42, None, true, Some(extra_fee_msat),
19355- None , current_height).is_ok());
19355+ false , current_height).is_ok());
1935619356 }
1935719357
1935819358 #[test]
@@ -19377,7 +19377,7 @@ mod tests {
1937719377 custom_tlvs: Vec::new(),
1937819378 },
1937919379 shared_secret: SharedSecret::from_bytes([0; 32]),
19380- }, [0; 32], PaymentHash([0; 32]), 100, TEST_FINAL_CLTV + 1, None, true, None, None , current_height);
19380+ }, [0; 32], PaymentHash([0; 32]), 100, TEST_FINAL_CLTV + 1, None, true, None, false , current_height);
1938119381
1938219382 // Should not return an error as this condition:
1938319383 // https://github.com/lightning/bolts/blob/4dcc377209509b13cf89a4b91fde7d478f5b46d8/04-onion-routing.md?plain=1#L334
0 commit comments