1
0

kill old-style namedtuples

This commit is contained in:
SomberNight
2018-10-28 00:28:29 +02:00
parent 34569d172f
commit 9037f25da1
8 changed files with 74 additions and 48 deletions

View File

@@ -902,14 +902,18 @@ def ignore_exceptions(func):
return wrapper
TxMinedStatus = NamedTuple("TxMinedStatus", [("height", int),
("conf", int),
("timestamp", int),
("header_hash", str)])
VerifiedTxInfo = NamedTuple("VerifiedTxInfo", [("height", int),
("timestamp", int),
("txpos", int),
("header_hash", str)])
class TxMinedStatus(NamedTuple):
height: int
conf: int
timestamp: int
header_hash: str
class VerifiedTxInfo(NamedTuple):
height: int
timestamp: int
txpos: int
header_hash: str
def make_aiohttp_session(proxy: dict, headers=None, timeout=None):