tLinting - 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 825afe4a33491675a51df5d84e1aa7809493b6d8 DIR parent b9a1e2f05c4871e9d7a3fa90e01a6548152bf65f HTML Author: parazyd <parazyd@dyne.org> Date: Thu, 15 Apr 2021 12:47:06 +0200 Linting Diffstat: M obelisk/errors_jsonrpc.py | 1 + M obelisk/protocol.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/obelisk/errors_jsonrpc.py b/obelisk/errors_jsonrpc.py t@@ -18,6 +18,7 @@ class JsonRPCError: + """Class implementing functions returning JSON-RPC errors""" def __init__(self): return DIR diff --git a/obelisk/protocol.py b/obelisk/protocol.py t@@ -261,7 +261,7 @@ class ElectrumProtocol(asyncio.Protocol): # pylint: disable=R0904,R0902 } } - async def blockchain_block_headers(self, writer, query): # pylint: disable=W0613 + async def blockchain_block_headers(self, writer, query): # pylint: disable=W0613,R0911 """Method: blockchain.block.headers Return a concatenated chunk of block headers from the main chain. """ t@@ -310,7 +310,6 @@ class ElectrumProtocol(asyncio.Protocol): # pylint: disable=R0904,R0902 # TODO: Review # TODO: Is index is 0 or last elem? hdr_lst = [headers[i:i + 80] for i in range(0, len(headers), 80)] - print(hdr_lst) branch, root = merkle_branch_and_root(hdr_lst, 0) resp["branch"] = [safe_hexlify(i) for i in branch] resp["root"] = safe_hexlify(root)