@@ -97,7 +97,8 @@ wallet_commit_channel(struct lightningd *ld,
9797 const u8 * our_upfront_shutdown_script ,
9898 const u8 * remote_upfront_shutdown_script ,
9999 const struct channel_type * type ,
100- const struct wally_psbt * funding_psbt )
100+ const struct wally_psbt * funding_psbt ,
101+ bool withheld )
101102{
102103 struct channel * channel ;
103104 struct amount_msat our_msat ;
@@ -237,7 +238,8 @@ wallet_commit_channel(struct lightningd *ld,
237238 0 ,
238239 & zero_channel_stats ,
239240 tal_arr (NULL , struct channel_state_change * , 0 ),
240- funding_psbt );
241+ funding_psbt ,
242+ withheld );
241243
242244 /* Now we finally put it in the database. */
243245 wallet_channel_insert (ld -> wallet , channel );
@@ -446,7 +448,8 @@ static void opening_funder_finished(struct subd *openingd, const u8 *resp,
446448 fc -> our_upfront_shutdown_script ,
447449 remote_upfront_shutdown_script ,
448450 type ,
449- fc -> funding_psbt );
451+ fc -> funding_psbt ,
452+ fc -> withheld );
450453 if (!channel ) {
451454 was_pending (command_fail (fc -> cmd , LIGHTNINGD ,
452455 "Key generation failure" ));
@@ -550,7 +553,8 @@ static void opening_fundee_finished(struct subd *openingd,
550553 local_upfront_shutdown_script ,
551554 remote_upfront_shutdown_script ,
552555 type ,
553- NULL );
556+ NULL ,
557+ false);
554558 if (!channel ) {
555559 uncommitted_channel_disconnect (uc , LOG_BROKEN ,
556560 "Commit channel failed" );
@@ -1096,6 +1100,9 @@ static struct command_result *json_fundchannel_complete(struct command *cmd,
10961100
10971101 fc -> funding_psbt = tal_steal (fc , funding_psbt );
10981102
1103+ /* FIXME: Set by option */
1104+ fc -> withheld = false;
1105+
10991106 /* Set the cmd to this new cmd */
11001107 peer -> uncommitted_channel -> fc -> cmd = cmd ;
11011108 msg = towire_openingd_funder_complete (NULL ,
@@ -1644,7 +1651,8 @@ static struct channel *stub_chan(struct command *cmd,
16441651 0 ,
16451652 & zero_channel_stats ,
16461653 tal_arr (NULL , struct channel_state_change * , 0 ),
1647- NULL );
1654+ NULL ,
1655+ false);
16481656
16491657 /* We don't want to gossip about this, ever. */
16501658 channel -> channel_gossip = tal_free (channel -> channel_gossip );
0 commit comments