Add tx in mempool and in chain statuses.

This commit is contained in:
tecnovert
2023-07-29 11:58:19 +02:00
parent c3b33c502e
commit 55ded71686
2 changed files with 12 additions and 1 deletions

View File

@@ -111,6 +111,8 @@ class TxStates(IntEnum):
TX_CONFIRMED = auto()
TX_REDEEMED = auto()
TX_REFUNDED = auto()
TX_IN_MEMPOOL = auto()
TX_IN_CHAIN = auto()
class TxTypes(IntEnum):
@@ -323,6 +325,10 @@ def strTxState(state):
return 'Redeemed'
if state == TxStates.TX_REFUNDED:
return 'Refunded'
if state == TxStates.TX_IN_MEMPOOL:
return 'In Mempool'
if state == TxStates.TX_IN_CHAIN:
return 'In Chain'
return 'Unknown'