mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-01 17:47:30 +01:00
Revert "gossipd: query_messages: fail the connection if peer says it does not have up-to-date infos"
This reverts commit 7fd2f6db6d
.
We want to set 'complete' to false in future if we don't know
everything!
This commit is contained in:
parent
2801d98e34
commit
35bbba68a5
1 changed files with 0 additions and 9 deletions
|
@ -682,10 +682,6 @@ const u8 *handle_reply_channel_range(struct peer *peer, const u8 *msg)
|
||||||
|
|
||||||
scids = decode_short_ids(tmpctx, encoded);
|
scids = decode_short_ids(tmpctx, encoded);
|
||||||
if (!scids) {
|
if (!scids) {
|
||||||
if (complete == 0)
|
|
||||||
return towire_errorfmt(peer, NULL,
|
|
||||||
"No up to date infos about this network: %s",
|
|
||||||
tal_hex(tmpctx, msg));
|
|
||||||
return towire_errorfmt(peer, NULL,
|
return towire_errorfmt(peer, NULL,
|
||||||
"Bad reply_channel_range encoding %s",
|
"Bad reply_channel_range encoding %s",
|
||||||
tal_hex(tmpctx, encoded));
|
tal_hex(tmpctx, encoded));
|
||||||
|
@ -816,11 +812,6 @@ const u8 *handle_reply_short_channel_ids_end(struct peer *peer, const u8 *msg)
|
||||||
tal_hex(tmpctx, msg));
|
tal_hex(tmpctx, msg));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (complete == 0)
|
|
||||||
return towire_errorfmt(peer, NULL,
|
|
||||||
"No up to date infos about this network: %s",
|
|
||||||
tal_hex(tmpctx, msg));
|
|
||||||
|
|
||||||
peer->scid_query_outstanding = false;
|
peer->scid_query_outstanding = false;
|
||||||
if (peer->scid_query_cb)
|
if (peer->scid_query_cb)
|
||||||
peer->scid_query_cb(peer, complete);
|
peer->scid_query_cb(peer, complete);
|
||||||
|
|
Loading…
Add table
Reference in a new issue