tblock.headers: It's not always required to fetch more headers. - obelisk - Electrum server using libbitcoin as its backend | |
git clone https://git.parazyd.org/obelisk | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 5bbe4f0c3658f82518243e59429f75c5acb31d34 | |
parent 825afe4a33491675a51df5d84e1aa7809493b6d8 | |
Author: parazyd | |
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(-) --- | |
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)] |