File tree 1 file changed +16
-1
lines changed
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() {
1027
1027
node_features: NodeFeatures :: empty( ) ,
1028
1028
short_channel_id: 0 ,
1029
1029
channel_features: ChannelFeatures :: empty( ) ,
1030
- fee_msat: 3000 ,
1030
+ fee_msat: 3_000 ,
1031
1031
cltv_expiry_delta: 24 ,
1032
1032
maybe_announced_channel: false ,
1033
1033
} ,
@@ -1144,6 +1144,21 @@ fn test_trampoline_onion_payload_assembly_values() {
1144
1144
} else {
1145
1145
panic ! ( "Bob payload must be Forward" ) ;
1146
1146
}
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) ;
1147
1162
}
1148
1163
1149
1164
#[ test]
You can’t perform that action at this time.
0 commit comments