1
0

wallet: TxMinedInfo (merged TxMinedStatus and VerifiedTxInfo)

This commit is contained in:
SomberNight
2018-12-07 20:47:28 +01:00
parent e1f4865844
commit c017f788ac
5 changed files with 29 additions and 29 deletions

View File

@@ -879,18 +879,12 @@ def ignore_exceptions(func):
return wrapper
class TxMinedStatus(NamedTuple):
height: int
conf: int
timestamp: Optional[int]
header_hash: Optional[str]
class VerifiedTxInfo(NamedTuple):
height: int
timestamp: int
txpos: int
header_hash: str
class TxMinedInfo(NamedTuple):
height: int # height of block that mined tx
conf: Optional[int] = None # number of confirmations (None means unknown)
timestamp: Optional[int] = None # timestamp of block that mined tx
txpos: Optional[int] = None # position of tx in serialized block
header_hash: Optional[str] = None # hash of block that mined tx
def make_aiohttp_session(proxy: dict, headers=None, timeout=None):