Skip to content

Commit

Permalink
Changed settings to fix a issue with keys not being found.
Browse files Browse the repository at this point in the history
  • Loading branch information
cschuchardt88 committed Apr 26, 2024
1 parent a859d65 commit c5dae4f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
8 changes: 0 additions & 8 deletions src/LevelDBStore/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ public static class Helper
{
public static IEnumerable<(byte[], byte[])> Seek(this DB db, byte[] prefix, ReadOptions options)
{
using var sn = db.CreateSnapshot();

options.Snapshot = sn;

using var it = db.CreateIterator(options);

for (it.Seek(prefix); it.IsValid(); it.Next())
Expand All @@ -31,10 +27,6 @@ public static class Helper

public static IEnumerable<(byte[], byte[])> SeekPrev(this DB db, byte[] prefix, ReadOptions options)
{
using var sn = db.CreateSnapshot();

options.Snapshot = sn;

using var it = db.CreateIterator(options);

it.Seek(prefix);
Expand Down
2 changes: 0 additions & 2 deletions src/LevelDBStore/Plugins/Storage/Store.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ public Store(string dir)
// Keep whole blockchain open plus future files
// at lease up to block index 10_000_000
MaxOpenFiles = 4096,
BlockSize = 16 * 1024, // 16K
WriteBufferSize = 16 * 1024 * 1024, // 16MB
FilterPolicy = 10,
CompressionLevel = CompressionLevel.SnappyCompression,
});
Expand Down

0 comments on commit c5dae4f

Please sign in to comment.