File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -241,28 +241,22 @@ void validate_initial_commitment_signature(int hsm_fd,
241
241
struct bitcoin_tx * tx ,
242
242
struct bitcoin_signature * sig )
243
243
{
244
- struct existing_htlc * * htlcs ;
245
- struct bitcoin_signature * htlc_sigs ;
246
244
u32 feerate ;
247
245
u64 commit_num ;
248
246
const u8 * msg ;
249
247
struct secret * old_secret ;
250
248
struct pubkey next_point ;
251
249
252
250
/* Validate the counterparty's signature. */
253
- htlcs = tal_arr (NULL , struct existing_htlc * , 0 );
254
- htlc_sigs = tal_arr (NULL , struct bitcoin_signature , 0 );
255
251
feerate = 0 ; /* unused since there are no htlcs */
256
252
commit_num = 0 ;
257
253
msg = towire_hsmd_validate_commitment_tx (NULL ,
258
254
tx ,
259
- ( const struct simple_htlc * * ) htlcs ,
255
+ NULL , /* No htlcs */
260
256
commit_num ,
261
257
feerate ,
262
258
sig ,
263
- htlc_sigs );
264
- tal_free (htlc_sigs );
265
- tal_free (htlcs );
259
+ NULL /* No htlc_sigs */ );
266
260
wire_sync_write (hsm_fd , take (msg ));
267
261
msg = wire_sync_read (tmpctx , hsm_fd );
268
262
if (!fromwire_hsmd_validate_commitment_tx_reply (tmpctx , msg , & old_secret , & next_point ))
You can’t perform that action at this time.
0 commit comments