diff --git a/chainlib/block.py b/chainlib/block.py index 246a466..0ffd30c 100644 --- 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 index 805238a..05c3a49 100644 --- 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)