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

@@ -575,6 +575,7 @@ void peer_start_channeld(struct channel *channel,
/* Set at channel open, even if not
* negotiated now! */
channel->option_static_remotekey,
channel->option_anchor_outputs,
IFDEV(ld->dev_fast_gossip, false),
IFDEV(dev_fail_process_onionpacket, false),
pbases);