remove unused attribute

This commit is contained in:
Jack Robison 2022-04-28 15:53:00 -04:00
parent c30ef1d409
commit 6e69e1a272
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -279,10 +279,9 @@ class MerkleCache:
class FastMerkleCacheItem: class FastMerkleCacheItem:
__slots__ = ['tx_hashes', 'tree', 'root_hash'] __slots__ = ['tree', 'root_hash']
def __init__(self, tx_hashes: typing.List[bytes]): def __init__(self, tx_hashes: typing.List[bytes]):
self.tx_hashes = tuple(tx_hashes)
self.tree: typing.List[typing.List[bytes]] = [] self.tree: typing.List[typing.List[bytes]] = []
self.root_hash = self._walk_merkle(tx_hashes, self.tree.append) self.root_hash = self._walk_merkle(tx_hashes, self.tree.append)