chainlib

Generic blockchain access library and tooling
Log | Files | Refs | README | LICENSE

commit 883a9314956e27281f9ed5018cfe5cba89e4ea20
parent 04a09334ea4c95d6e505028c1afc7fea04290998
Author: lash <dev@holbrook.no>
Date:   Mon,  9 May 2022 18:46:50 +0000

Add common tx result fields

Diffstat:
Mchainlib/block.py | 1-
Mchainlib/tx.py | 5++++-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/chainlib/block.py b/chainlib/block.py @@ -21,7 +21,6 @@ class Block(Src): def __init__(self, src): self.number = None - self.hash = None self.txs = [] self.author = None diff --git a/chainlib/tx.py b/chainlib/tx.py @@ -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)