Skip to content

Commit

Permalink
Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
greymistcube committed Nov 15, 2023
1 parent 83c436d commit 3e6989e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ To be released.
`PrivateKey` and `PublicKey`. [[#3486]]
- (Libplanet.Crypto) Added `Address` property to `PrivateKey` and `PublicKey`.
[[#3486]]
- (Libplanet.Store) Added optional `cache` parameter of type `HashNodeCache`
to `MerkleTrie()` constructors. [[#3489]]

### Backward-incompatible network protocol changes

Expand All @@ -33,8 +35,13 @@ To be released.

### Added APIs

- (Libplanet.Store) Added `HashNodeCache` class. [[#3489]]

### Behavioral changes

- Changed internal caching strategy of `TrieStateStore` for read/write
optimization. [[#3489]]

### Bug fixes

### Dependencies
Expand All @@ -45,9 +52,11 @@ To be released.
[#3480]: https://github.com/planetarium/libplanet/pull/3480
[#3485]: https://github.com/planetarium/libplanet/pull/3485
[#3486]: https://github.com/planetarium/libplanet/pull/3486
[#3487]: https://github.com/planetarium/libplanet/pull/3487
[#3489]: https://github.com/planetarium/libplanet/pull/3489
[`RocksDb`]: https://www.nuget.org/packages/RocksDB
[`RocksDBSharp`]: https://www.nuget.org/packages/Planetarium.RocksDbSharp
[#3487]: https://github.com/planetarium/libplanet/pull/3487


Version 3.7.0
-------------
Expand Down
4 changes: 2 additions & 2 deletions Libplanet.Store/HashNodeCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Libplanet.Store
public class HashNodeCache
{
// FIXME: Tuned to 9c mainnet. Should be refactored to accept cache size as an argument.
private const int _cahceSize = 1_048_576;
private const int _cacheSize = 1_048_576;
private const int _reportPeriod = 60_000;

private LruCache<HashDigest<SHA256>, IValue> _cache;
Expand All @@ -26,7 +26,7 @@ public class HashNodeCache

internal HashNodeCache()
{
_cache = new LruCache<HashDigest<SHA256>, IValue>(_cahceSize);
_cache = new LruCache<HashDigest<SHA256>, IValue>(_cacheSize);
_stopwatch = new Stopwatch();
_attempts = 0;
_hits = 0;
Expand Down

0 comments on commit 3e6989e

Please sign in to comment.