@@ -380,6 +380,9 @@ u32 get_block_height(const struct chain_topology *topo UNNEEDED)
380380/* Generated stub for get_network_blockheight */
381381u32 get_network_blockheight (const struct chain_topology * topo UNNEEDED )
382382{ 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 (); }
383386/* Generated stub for hsmd_wire_name */
384387const char * hsmd_wire_name (int e UNNEEDED )
385388{ fprintf (stderr , "hsmd_wire_name called!\n" ); abort (); }
@@ -701,12 +704,10 @@ struct uncommitted_channel *new_uncommitted_channel(struct peer *peer UNNEEDED)
701704bool node_announcement_same (const u8 * nann1 UNNEEDED , const u8 * nann2 UNNEEDED )
702705{ fprintf (stderr , "node_announcement_same called!\n" ); abort (); }
703706/* 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 )
706708{ fprintf (stderr , "notify_chain_mvt called!\n" ); abort (); }
707709/* 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 )
710711{ fprintf (stderr , "notify_channel_mvt called!\n" ); abort (); }
711712/* Generated stub for notify_channel_open_failed */
712713void 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)
21182119
21192120 /* do inflights get cleared when the channel is closed?*/
21202121 dbid = chan -> dbid ;
2121- delete_channel (chan , false ); /* Also clears up peer! */
2122+ delete_channel (chan , true ); /* Also clears up peer! */
21222123 CHECK_MSG (count_inflights (w , dbid ) == 0 , "inflights cleaned up" );
21232124 db_commit_transaction (w -> db );
21242125 CHECK_MSG (!wallet_err , wallet_err );
@@ -2364,6 +2365,8 @@ int main(int argc, const char *argv[])
23642365 ld -> htlcs_out = tal (ld , struct htlc_out_map );
23652366 htlc_out_map_init (ld -> htlcs_out );
23662367 list_head_init (& ld -> wait_commands );
2368+ ld -> closed_channels = tal (ld , struct closed_channel_map );
2369+ closed_channel_map_init (ld -> closed_channels );
23672370
23682371 /* We do a runtime test here, so we still check compile! */
23692372 if (HAVE_SQLITE3 ) {
0 commit comments