diff --git a/gossipd/gossip.c b/gossipd/gossip.c index fbc2358f8..5b6d036ac 100644 --- a/gossipd/gossip.c +++ b/gossipd/gossip.c @@ -782,7 +782,6 @@ static u8 *create_node_announcement(const tal_t *ctx, struct daemon *daemon, secp256k1_ecdsa_signature *sig, u32 timestamp) { - u8 *features = NULL; u8 *addresses = tal_arr(ctx, u8, 0); u8 *announcement; size_t i; @@ -794,7 +793,7 @@ static u8 *create_node_announcement(const tal_t *ctx, struct daemon *daemon, towire_wireaddr(&addresses, &daemon->announcable[i]); announcement = - towire_node_announcement(ctx, sig, features, timestamp, + towire_node_announcement(ctx, sig, daemon->globalfeatures, timestamp, &daemon->id, daemon->rgb, daemon->alias, addresses); return announcement;