Placate pycodestyle
This commit is contained in:
parent
2304e943d4
commit
8861ebac8f
@ -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.
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user