Skip to content

Commit

Permalink
Merge pull request #2182 from niuxiaojie89/feature/bump-version-to-1.5.0
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
benbaley authored Oct 30, 2023
2 parents a22f9df + cf2fb08 commit d7b985f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ var (
Usage: "Time interval to regenerate the trie cache journal",
Value: ethconfig.Defaults.TrieCleanCacheRejournal,
}
SnapshotFlag = cli.BoolFlag{
SnapshotFlag = cli.BoolTFlag{
Name: "snapshot",
Usage: `Enables snapshot-database mode`,
Usage: `Enables snapshot-database mode (default = enable)`,
}
BloomFilterSizeFlag = cli.Uint64Flag{
Name: "bloomfilter.size",
Expand Down
4 changes: 2 additions & 2 deletions eth/downloader/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const (
)

var (
blockCacheMaxItems = 128 // Maximum number of blocks to cache before throttling the download
blockCacheInitialItems = 128 // Initial number of blocks to start fetching, before we know the sizes of the blocks
blockCacheMaxItems = 1024 // Maximum number of blocks to cache before throttling the download
blockCacheInitialItems = 256 // Initial number of blocks to start fetching, before we know the sizes of the blocks
blockCacheMemory = 256 * 1024 * 1024 // Maximum amount of memory to use for block caching
blockCacheSizeWeight = 0.1 // Multiplier to approximate the average block size based on past ones
)
Expand Down

0 comments on commit d7b985f

Please sign in to comment.