obelisk

Electrum server using libbitcoin as its backend
git clone https://git.parazyd.org/obelisk
Log | Files | Refs | README | LICENSE

commit 825afe4a33491675a51df5d84e1aa7809493b6d8
parent b9a1e2f05c4871e9d7a3fa90e01a6548152bf65f
Author: parazyd <parazyd@dyne.org>
Date:   Thu, 15 Apr 2021 12:47:06 +0200

Linting

Diffstat:
Mobelisk/errors_jsonrpc.py | 1+
Mobelisk/protocol.py | 3+--
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/obelisk/errors_jsonrpc.py b/obelisk/errors_jsonrpc.py @@ -18,6 +18,7 @@ class JsonRPCError: + """Class implementing functions returning JSON-RPC errors""" def __init__(self): return diff --git a/obelisk/protocol.py b/obelisk/protocol.py @@ -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. """ @@ -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)