Placate pycodestyle

This commit is contained in:
Neil Booth 2018-08-10 15:38:47 +09:00
parent 2304e943d4
commit 8861ebac8f
2 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,7 @@ from electrumx.server.history import History
UTXO = namedtuple("UTXO", "tx_num tx_pos tx_hash height value")
@attr.s(slots=True)
class FlushData(object):
height = attr.ib()
@ -43,6 +44,7 @@ class FlushData(object):
deletes = attr.ib()
tip = attr.ib()
class DB(object):
'''Simple wrapper of the backend database for querying.

View File

@ -271,6 +271,7 @@ def _exponent_to_bytes(exponent):
'''Convert an exponent to 32 big-endian bytes'''
return (bytes(32) + int_to_bytes(exponent))[-32:]
def _from_extended_key(ekey):
'''Return a PubKey or PrivKey from an extended key raw bytes.'''
if not isinstance(ekey, (bytes, bytearray)):
@ -295,6 +296,7 @@ def _from_extended_key(ekey):
return key, coin
def from_extended_key_string(ekey_str):
'''Given an extended key string, such as