connectd: simply use global features from common/features.

We currently hand the feature set from lightningd, but that's confusing
if they were ever different.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-12-03 09:36:06 +10:30
committed by Christian Decker
parent be6322a2d3
commit d613b3fa9d
3 changed files with 4 additions and 14 deletions

View File

@@ -367,8 +367,7 @@ int connectd_init(struct lightningd *ld)
msg = towire_connectctl_init(
tmpctx, &ld->id,
get_offered_globalfeatures(tmpctx),
get_offered_localfeatures(tmpctx), wireaddrs,
wireaddrs,
listen_announce,
ld->proxyaddr, ld->use_proxy_always || ld->pure_tor_setup,
allow_localhost, ld->config.use_dns,