Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions merkletools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import hashlib
import binascii
from functools import lru_cache
try:
import sha3
except:
Expand Down Expand Up @@ -72,6 +73,7 @@ def make_tree(self):
self._calculate_next_level()
self.is_ready = True

@lru_cache(maxsize=1024)
def get_merkle_root(self):
if self.is_ready:
if self.levels is not None:
Expand Down