Skip to content

Commit 35bbba6

Browse files
rustyrussellniftynei
authored andcommitted
Revert "gossipd: query_messages: fail the connection if peer says it does not have up-to-date infos"
This reverts commit 7fd2f6d. We want to set 'complete' to false in future if we don't know everything!
1 parent 2801d98 commit 35bbba6

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

gossipd/queries.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -682,10 +682,6 @@ const u8 *handle_reply_channel_range(struct peer *peer, const u8 *msg)
682682

683683
scids = decode_short_ids(tmpctx, encoded);
684684
if (!scids) {
685-
if (complete == 0)
686-
return towire_errorfmt(peer, NULL,
687-
"No up to date infos about this network: %s",
688-
tal_hex(tmpctx, msg));
689685
return towire_errorfmt(peer, NULL,
690686
"Bad reply_channel_range encoding %s",
691687
tal_hex(tmpctx, encoded));
@@ -816,11 +812,6 @@ const u8 *handle_reply_short_channel_ids_end(struct peer *peer, const u8 *msg)
816812
tal_hex(tmpctx, msg));
817813
}
818814

819-
if (complete == 0)
820-
return towire_errorfmt(peer, NULL,
821-
"No up to date infos about this network: %s",
822-
tal_hex(tmpctx, msg));
823-
824815
peer->scid_query_outstanding = false;
825816
if (peer->scid_query_cb)
826817
peer->scid_query_cb(peer, complete);

0 commit comments

Comments
 (0)