gossipd: receive global/local features the right way around

Fixes: #323
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-10-26 13:41:21 +10:30
committed by Christian Decker
parent 954a3990fa
commit 8d9818ff9c

View File

@@ -1009,8 +1009,8 @@ static struct io_plan *gossip_init(struct daemon_conn *master,
if (!fromwire_gossipctl_init(daemon, msg, NULL, if (!fromwire_gossipctl_init(daemon, msg, NULL,
&daemon->broadcast_interval, &daemon->broadcast_interval,
&chain_hash, &daemon->id, &port, &chain_hash, &daemon->id, &port,
&daemon->localfeatures, &daemon->globalfeatures,
&daemon->globalfeatures)) { &daemon->localfeatures)) {
master_badmsg(WIRE_GOSSIPCTL_INIT, msg); master_badmsg(WIRE_GOSSIPCTL_INIT, msg);
} }
daemon->rstate = new_routing_state(daemon, &chain_hash); daemon->rstate = new_routing_state(daemon, &chain_hash);