Add common tx result fields

This commit is contained in:
lash 2022-05-09 18:46:50 +00:00
parent 04a09334ea
commit 883a931495
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,6 @@ class Block(Src):
def __init__(self, src):
self.number = None
self.hash = None
self.txs = []
self.author = None

View File

@ -78,4 +78,7 @@ class TxResult(Src):
def __init__(self, src):
self.status = Status.UNKNOWN
super(TxResult, self).__init__(src)
self.tx_index = None
self.block_hash = None
self.fee_cost = 0
super(TxResult, self).__init__(src=src)