diff options
-rw-r--r-- | src/ht.erl | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -96,10 +96,10 @@ add(#history_tree{version = V, store = Store}, Entry) -> LeafHash = mkleafhash(Entry), LayerMap = reverse([B || <<B:1>> <= binary:encode_unsigned(NewVersion)]), #history_tree{version = NewVersion, - store = update(ts:store(Store, {LeafIndex, 0}, LeafHash), - 1, LayerMap, - #inner{index = LeafIndex, layer = 0, - hash = LeafHash})}. + store = update(ts:store(Store, {LeafIndex, 0}, LeafHash), + 1, LayerMap, + #inner{index = LeafIndex, layer = 0, + hash = LeafHash})}. -spec tree_hash(history_tree()) -> binary(). tree_hash(Tree) -> |