tblock.headers: It's not always required to fetch more headers. - obelisk - Electrum server using libbitcoin as its backend HTML git clone https://git.parazyd.org/obelisk DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 5bbe4f0c3658f82518243e59429f75c5acb31d34 DIR parent 825afe4a33491675a51df5d84e1aa7809493b6d8 HTML Author: parazyd <parazyd@dyne.org> Date: Thu, 15 Apr 2021 12:50:33 +0200 block.headers: It's not always required to fetch more headers. Diffstat: M obelisk/protocol.py | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) --- DIR diff --git a/obelisk/protocol.py b/obelisk/protocol.py t@@ -307,6 +307,7 @@ class ElectrumProtocol(asyncio.Protocol): # pylint: disable=R0904,R0902 return JsonRPCError.internalerror() headers.extend(data) + if cp_height > 0: # TODO: Review # TODO: Is index is 0 or last elem? hdr_lst = [headers[i:i + 80] for i in range(0, len(headers), 80)]