diff options
Diffstat (limited to 'src/ht.erl')
-rw-r--r-- | src/ht.erl | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -101,8 +101,11 @@ add(#history_tree{version = V, store = Store}, Entry) -> #inner{index = LeafIndex, layer = 0, hash = LeafHash})}. +-spec tree_hash(history_tree()) -> binary(). tree_hash(Tree) -> tree_hash(Tree, Tree#history_tree.version). + +-spec tree_hash(history_tree(), integer()) -> binary(). tree_hash(_, -1) -> hash(""); tree_hash(Tree, Version) -> |