@ -1001,7 +1001,7 @@ static void opener_commit_received(struct subd *dualopend,
u32 feerate ;
u32 feerate ;
struct amount_sat total_funding , funding_ours ;
struct amount_sat total_funding , funding_ours ;
u8 channel_flags , * remote_upfront_shutdown_script ,
u8 channel_flags , * remote_upfront_shutdown_script ,
* local_upfront_shutdown _script;
* unused _script;
struct penalty_base * pbase ;
struct penalty_base * pbase ;
struct wally_psbt * psbt ;
struct wally_psbt * psbt ;
struct channel * channel ;
struct channel * channel ;
@ -1030,7 +1030,7 @@ static void opener_commit_received(struct subd *dualopend,
& channel_flags ,
& channel_flags ,
& feerate ,
& feerate ,
& uc - > our_config . channel_reserve ,
& uc - > our_config . channel_reserve ,
& local_upfront_shutdown _script,
& unused _script,
& remote_upfront_shutdown_script ) ) {
& remote_upfront_shutdown_script ) ) {
log_broken ( uc - > log , " bad WIRE_DUALOPEND_COMMIT_RCVD %s " ,
log_broken ( uc - > log , " bad WIRE_DUALOPEND_COMMIT_RCVD %s " ,
tal_hex ( msg , msg ) ) ;
tal_hex ( msg , msg ) ) ;
@ -1061,7 +1061,7 @@ static void opener_commit_received(struct subd *dualopend,
& channel_info ,
& channel_info ,
feerate ,
feerate ,
LOCAL ,
LOCAL ,
local _upfront_shutdown_script,
uc - > fc - > our _upfront_shutdown_script,
remote_upfront_shutdown_script ) ;
remote_upfront_shutdown_script ) ;
if ( ! channel ) {
if ( ! channel ) {
@ -1080,9 +1080,9 @@ static void opener_commit_received(struct subd *dualopend,
json_add_bool ( response , " commitments_secured " , true ) ;
json_add_bool ( response , " commitments_secured " , true ) ;
/* For convenience sake, we include the funding outnum */
/* For convenience sake, we include the funding outnum */
json_add_num ( response , " funding_outnum " , funding_outnum ) ;
json_add_num ( response , " funding_outnum " , funding_outnum ) ;
if ( local _upfront_shutdown_script)
if ( uc - > fc - > our _upfront_shutdown_script)
json_add_hex_talarr ( response , " close_to " ,
json_add_hex_talarr ( response , " close_to " ,
local _upfront_shutdown_script) ;
uc - > fc - > our _upfront_shutdown_script) ;
/* Now that we've got the final PSBT, save it */
/* Now that we've got the final PSBT, save it */
channel - > psbt = tal_steal ( channel , psbt ) ;
channel - > psbt = tal_steal ( channel , psbt ) ;
wallet_channel_save ( uc - > fc - > cmd - > ld - > wallet , channel ) ;
wallet_channel_save ( uc - > fc - > cmd - > ld - > wallet , channel ) ;