mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 13:25:43 +01:00
gossipd: actually use global features to create our own node_announcement.
It's currently empty, but I was surprised we still used "NULL". Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
f4e2a9c921
commit
16b8f1eb83
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user