Skip to content

Commit

Permalink
Removed ReducedStore
Browse files Browse the repository at this point in the history
  • Loading branch information
greymistcube committed Sep 25, 2023
1 parent cd70f9f commit addfc62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 157 deletions.
9 changes: 2 additions & 7 deletions Libplanet.Headless/Hosting/LibplanetNodeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ public LibplanetNodeService(
(Store, StateStore) = LoadStore(
Properties.StorePath,
Properties.StoreType,
Properties.StoreStatesCacheSize,
Properties.NoReduceStore);
Properties.StoreStatesCacheSize);

var chainIds = Store.ListChainIds().ToList();
Log.Debug($"Number of chain ids: {chainIds.Count()}");
Expand Down Expand Up @@ -303,7 +302,7 @@ public override async Task StopAsync(CancellationToken cancellationToken)
}
}

protected (IStore, IStateStore) LoadStore(string path, string type, int statesCacheSize, bool noReduceStore = false)
protected (IStore, IStateStore) LoadStore(string path, string type, int statesCacheSize)
{
IStore store = null;
if (type == "rocksdb")
Expand Down Expand Up @@ -344,10 +343,6 @@ public override async Task StopAsync(CancellationToken cancellationToken)
}

store ??= new DefaultStore(path, flush: false);
if (!noReduceStore)
{
store = new ReducedStore(store);
}

IKeyValueStore stateKeyValueStore = new RocksDBKeyValueStore(Path.Combine(path, "states"));
IStateStore stateStore = new TrieStateStore(stateKeyValueStore);
Expand Down
150 changes: 0 additions & 150 deletions Libplanet.Headless/ReducedStore.cs

This file was deleted.

0 comments on commit addfc62

Please sign in to comment.