Skip to content

Commit

Permalink
Add missing cache
Browse files Browse the repository at this point in the history
  • Loading branch information
greymistcube committed Nov 20, 2023
1 parent c44fa2d commit 3261593
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Libplanet.Store/Trie/MerkleTrie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public ITrie Set(in KeyBytes key, IValue value)
new ValueNode(value),
true);

return new MerkleTrie(KeyValueStore, newRootNode);
return new MerkleTrie(KeyValueStore, newRootNode, _cache);
}

/// <inheritdoc cref="ITrie.Get(KeyBytes)"/>
Expand Down
2 changes: 1 addition & 1 deletion Libplanet.Store/TrieStateStore.Commit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public ITrie Commit(ITrie trie)

writeBatch.Flush();

return new MerkleTrie(StateKeyValueStore, newRoot);
return new MerkleTrie(StateKeyValueStore, newRoot, _cache);
}
}

Expand Down

0 comments on commit 3261593

Please sign in to comment.