darosior
7fd2f6db6d
gossipd: query_messages: fail the connection if peer says it does not have up-to-date infos
...
It is most likely not on the same network, and in any case not a good peer to gossip with.
2019-10-09 16:54:39 -05:00
darosior
2638947ddc
gossipd: query_scid: respond with complete to 0 on wrong chain_hash
2019-10-09 16:54:39 -05:00
darosior
d3c8225968
gossipd: add a BOLT#7 comment when wrong chain_hash in 'query_channel_range'
...
And correct some typos
2019-10-09 16:54:39 -05:00
Rusty Russell
aab9e9f010
gossipd: remove internal dev helpers for queries.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-09-30 07:08:07 +00:00
Rusty Russell
8b3a298ce6
gossipd: generalize query_short_channel_ids to use a callback.
...
We currently use a flag, but that's inflexible.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-09-30 07:08:07 +00:00
Rusty Russell
c07dff21dc
gossipd: generalize query_channel_range to use a callback.
...
This means we'll be able to call it for internal reasons, not just dev testing
as now.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-09-30 07:08:07 +00:00
Rusty Russell
1450a13c1f
gossipd: don't expose scids of unannounced channels.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-09-27 02:32:53 +00:00
Rusty Russell
722b4942ed
common: rename decode_short_channel_ids.{c,h} to decode_array.{c.h}
...
This encoding scheme is no longer just used for short_channel_ids, so make
the names more generic.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-09-27 02:32:53 +00:00
Rusty Russell
2b47922ea5
gossipd: move query functions into their own file.
...
The only real change is dump_gossip() used to call
maybe_create_next_scid_reply(), but now I've simply renamed
that to maybe_send_query_responses() and we call it directly.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2019-09-25 04:01:56 +00:00