Placate pycodestyle
This commit is contained in:
parent
b4b378ed31
commit
01806501e4
@ -31,6 +31,7 @@ from electrumx.server.history import History
|
|||||||
|
|
||||||
UTXO = namedtuple("UTXO", "tx_num tx_pos tx_hash height value")
|
UTXO = namedtuple("UTXO", "tx_num tx_pos tx_hash height value")
|
||||||
|
|
||||||
|
|
||||||
@attr.s(slots=True)
|
@attr.s(slots=True)
|
||||||
class FlushData(object):
|
class FlushData(object):
|
||||||
height = attr.ib()
|
height = attr.ib()
|
||||||
@ -43,6 +44,7 @@ class FlushData(object):
|
|||||||
deletes = attr.ib()
|
deletes = attr.ib()
|
||||||
tip = attr.ib()
|
tip = attr.ib()
|
||||||
|
|
||||||
|
|
||||||
class DB(object):
|
class DB(object):
|
||||||
'''Simple wrapper of the backend database for querying.
|
'''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'''
|
'''Convert an exponent to 32 big-endian bytes'''
|
||||||
return (bytes(32) + int_to_bytes(exponent))[-32:]
|
return (bytes(32) + int_to_bytes(exponent))[-32:]
|
||||||
|
|
||||||
|
|
||||||
def _from_extended_key(ekey):
|
def _from_extended_key(ekey):
|
||||||
'''Return a PubKey or PrivKey from an extended key raw bytes.'''
|
'''Return a PubKey or PrivKey from an extended key raw bytes.'''
|
||||||
if not isinstance(ekey, (bytes, bytearray)):
|
if not isinstance(ekey, (bytes, bytearray)):
|
||||||
@ -295,6 +296,7 @@ def _from_extended_key(ekey):
|
|||||||
|
|
||||||
return key, coin
|
return key, coin
|
||||||
|
|
||||||
|
|
||||||
def from_extended_key_string(ekey_str):
|
def from_extended_key_string(ekey_str):
|
||||||
'''Given an extended key string, such as
|
'''Given an extended key string, such as
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user