gossipd: set sent flag when sending reply_short_channel_ids_end

Otherwise, if we don't announce the last node, we'll not flush this
out; it will be delayed until the next time we send gossip!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-09-28 09:35:35 +09:30
committed by Christian Decker
parent fbb7bafc3b
commit 95c9a73fbb
2 changed files with 2 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ changes.
- JSON RPC: `ping` now works even after one peer fails to respond.
- JSON RPC: `getroute` `fuzzpercent` and `pay` `maxfeepercent` can now be > 100.
- Protocol: fix occasional deadlock when both peers flood with gossip.
- Protocol: fix occasional long delay on sending `reply_short_channel_ids_end`.
### Security

View File

@@ -865,6 +865,7 @@ static bool create_next_scid_reply(struct peer *peer)
&rstate->chain_hash,
true);
queue_peer_msg(peer, take(end));
sent = true;
peer->scid_queries = tal_free(peer->scid_queries);
peer->scid_query_idx = 0;
peer->scid_query_nodes = tal_free(peer->scid_query_nodes);