@@ -380,6 +380,9 @@ u32 get_block_height(const struct chain_topology *topo UNNEEDED)
380
380
/* Generated stub for get_network_blockheight */
381
381
u32 get_network_blockheight (const struct chain_topology * topo UNNEEDED )
382
382
{ fprintf (stderr , "get_network_blockheight called!\n" ); abort (); }
383
+ /* Generated stub for hash_cid */
384
+ size_t hash_cid (const struct channel_id * cid UNNEEDED )
385
+ { fprintf (stderr , "hash_cid called!\n" ); abort (); }
383
386
/* Generated stub for hsmd_wire_name */
384
387
const char * hsmd_wire_name (int e UNNEEDED )
385
388
{ fprintf (stderr , "hsmd_wire_name called!\n" ); abort (); }
@@ -701,12 +704,10 @@ struct uncommitted_channel *new_uncommitted_channel(struct peer *peer UNNEEDED)
701
704
bool node_announcement_same (const u8 * nann1 UNNEEDED , const u8 * nann2 UNNEEDED )
702
705
{ fprintf (stderr , "node_announcement_same called!\n" ); abort (); }
703
706
/* Generated stub for notify_chain_mvt */
704
- void notify_chain_mvt (struct lightningd * ld UNNEEDED ,
705
- const struct chain_coin_mvt * chain_mvt UNNEEDED )
707
+ void notify_chain_mvt (struct lightningd * ld UNNEEDED , const struct chain_coin_mvt * mvt UNNEEDED )
706
708
{ fprintf (stderr , "notify_chain_mvt called!\n" ); abort (); }
707
709
/* Generated stub for notify_channel_mvt */
708
- void notify_channel_mvt (struct lightningd * ld UNNEEDED ,
709
- const struct channel_coin_mvt * chan_mvt UNNEEDED )
710
+ void notify_channel_mvt (struct lightningd * ld UNNEEDED , const struct channel_coin_mvt * mvt UNNEEDED )
710
711
{ fprintf (stderr , "notify_channel_mvt called!\n" ); abort (); }
711
712
/* Generated stub for notify_channel_open_failed */
712
713
void notify_channel_open_failed (struct lightningd * ld UNNEEDED ,
@@ -2118,7 +2119,7 @@ static bool test_channel_inflight_crud(struct lightningd *ld, const tal_t *ctx)
2118
2119
2119
2120
/* do inflights get cleared when the channel is closed?*/
2120
2121
dbid = chan -> dbid ;
2121
- delete_channel (chan , false ); /* Also clears up peer! */
2122
+ delete_channel (chan , true ); /* Also clears up peer! */
2122
2123
CHECK_MSG (count_inflights (w , dbid ) == 0 , "inflights cleaned up" );
2123
2124
db_commit_transaction (w -> db );
2124
2125
CHECK_MSG (!wallet_err , wallet_err );
@@ -2364,6 +2365,8 @@ int main(int argc, const char *argv[])
2364
2365
ld -> htlcs_out = tal (ld , struct htlc_out_map );
2365
2366
htlc_out_map_init (ld -> htlcs_out );
2366
2367
list_head_init (& ld -> wait_commands );
2368
+ ld -> closed_channels = tal (ld , struct closed_channel_map );
2369
+ closed_channel_map_init (ld -> closed_channels );
2367
2370
2368
2371
/* We do a runtime test here, so we still check compile! */
2369
2372
if (HAVE_SQLITE3 ) {
0 commit comments