@@ -96,7 +96,8 @@ wallet_commit_channel(struct lightningd *ld,
9696 const u8 * our_upfront_shutdown_script ,
9797 const u8 * remote_upfront_shutdown_script ,
9898 const struct channel_type * type ,
99- const struct wally_psbt * funding_psbt )
99+ const struct wally_psbt * funding_psbt ,
100+ bool withheld )
100101{
101102 struct channel * channel ;
102103 struct amount_msat our_msat ;
@@ -236,7 +237,8 @@ wallet_commit_channel(struct lightningd *ld,
236237 0 ,
237238 & zero_channel_stats ,
238239 tal_arr (NULL , struct channel_state_change * , 0 ),
239- funding_psbt );
240+ funding_psbt ,
241+ withheld );
240242
241243 /* Now we finally put it in the database. */
242244 wallet_channel_insert (ld -> wallet , channel );
@@ -445,7 +447,8 @@ static void opening_funder_finished(struct subd *openingd, const u8 *resp,
445447 fc -> our_upfront_shutdown_script ,
446448 remote_upfront_shutdown_script ,
447449 type ,
448- fc -> funding_psbt );
450+ fc -> funding_psbt ,
451+ fc -> withheld );
449452 if (!channel ) {
450453 was_pending (command_fail (fc -> cmd , LIGHTNINGD ,
451454 "Key generation failure" ));
@@ -549,7 +552,8 @@ static void opening_fundee_finished(struct subd *openingd,
549552 local_upfront_shutdown_script ,
550553 remote_upfront_shutdown_script ,
551554 type ,
552- NULL );
555+ NULL ,
556+ false);
553557 if (!channel ) {
554558 uncommitted_channel_disconnect (uc , LOG_BROKEN ,
555559 "Commit channel failed" );
@@ -1095,6 +1099,9 @@ static struct command_result *json_fundchannel_complete(struct command *cmd,
10951099
10961100 fc -> funding_psbt = tal_steal (fc , funding_psbt );
10971101
1102+ /* FIXME: Set by option */
1103+ fc -> withheld = false;
1104+
10981105 /* Set the cmd to this new cmd */
10991106 peer -> uncommitted_channel -> fc -> cmd = cmd ;
11001107 msg = towire_openingd_funder_complete (NULL ,
@@ -1643,7 +1650,8 @@ static struct channel *stub_chan(struct command *cmd,
16431650 0 ,
16441651 & zero_channel_stats ,
16451652 tal_arr (NULL , struct channel_state_change * , 0 ),
1646- NULL );
1653+ NULL ,
1654+ false);
16471655
16481656 /* We don't want to gossip about this, ever. */
16491657 channel -> channel_gossip = tal_free (channel -> channel_gossip );
0 commit comments