openingd: remember if we negotiated option_anchor_outputs, to put in the db.

And hand it through to channeld just like option_static_remotekey.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-08-14 03:11:02 +09:30
parent b093856d0c
commit edf60b4f9e
12 changed files with 35 additions and 14 deletions

View File

@@ -625,6 +625,7 @@ enum watch_result onchaind_funding_spent(struct channel *channel,
channel->max_possible_feerate,
channel->future_per_commitment_point,
channel->option_static_remotekey,
channel->option_anchor_outputs,
is_replay);
subd_send_msg(channel->owner, take(msg));