Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
qianbin committed Feb 19, 2024
1 parent 18b1830 commit 1cad259
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/thor/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ func openMainDB(ctx *cli.Context, dir string) (*muxdb.MuxDB, error) {
TrieNodeCacheSizeMB: cacheMB,
TrieCachedNodeTTL: 30, // 5min
TrieDedupedPartitionFactor: math.MaxUint32,
TrieHistPartitionFactor: math.MaxUint32,
TrieWillCleanHistory: !ctx.Bool(disablePrunerFlag.Name),
OpenFilesCacheCapacity: fdCache,
ReadCacheMB: 256, // rely on os page cache other than huge db read cache.
Expand All @@ -285,8 +286,6 @@ func openMainDB(ctx *cli.Context, dir string) (*muxdb.MuxDB, error) {

if opts.TrieWillCleanHistory {
opts.TrieHistPartitionFactor = 256
} else {
opts.TrieHistPartitionFactor = 500000
}

path := filepath.Join(dir, "main.db")
Expand Down

0 comments on commit 1cad259

Please sign in to comment.