File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -1027,7 +1027,7 @@ fn test_trampoline_onion_payload_assembly_values() {
10271027 node_features: NodeFeatures :: empty( ) ,
10281028 short_channel_id: 0 ,
10291029 channel_features: ChannelFeatures :: empty( ) ,
1030- fee_msat: 3000 ,
1030+ fee_msat: 3_000 ,
10311031 cltv_expiry_delta: 24 ,
10321032 maybe_announced_channel: false ,
10331033 } ,
@@ -1144,6 +1144,21 @@ fn test_trampoline_onion_payload_assembly_values() {
11441144 } else {
11451145 panic ! ( "Bob payload must be Forward" ) ;
11461146 }
1147+
1148+ let ( _, total_msat_combined, total_htlc_offset_combined) = onion_utils:: create_payment_onion (
1149+ & Secp256k1 :: new ( ) ,
1150+ & path,
1151+ & session_priv,
1152+ amt_msat,
1153+ & recipient_onion_fields,
1154+ cur_height,
1155+ & payment_hash,
1156+ & None ,
1157+ None ,
1158+ prng_seed,
1159+ ) . unwrap ( ) ;
1160+ assert_eq ! ( total_msat_combined, total_msat) ;
1161+ assert_eq ! ( total_htlc_offset_combined, total_htlc_offset) ;
11471162}
11481163
11491164#[ test]
You can’t perform that action at this time.
0 commit comments