aboutsummaryrefslogtreecommitdiffstats
path: root/eth/config.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-11-15 20:42:19 +0800
committerGitHub <noreply@github.com>2018-11-15 20:42:19 +0800
commit17d67c5834679f2b27ef08eddfce3b3a154a96a8 (patch)
tree3989575655db27f02641bf1fc7d96f87a9441ebb /eth/config.go
parent14346e4ef97ca812fb9f1d5d2cd87021c0155cf6 (diff)
parent434dd5bc0067cdf604d84426df9086015721dd36 (diff)
downloaddexon-17d67c5834679f2b27ef08eddfce3b3a154a96a8.tar
dexon-17d67c5834679f2b27ef08eddfce3b3a154a96a8.tar.gz
dexon-17d67c5834679f2b27ef08eddfce3b3a154a96a8.tar.bz2
dexon-17d67c5834679f2b27ef08eddfce3b3a154a96a8.tar.lz
dexon-17d67c5834679f2b27ef08eddfce3b3a154a96a8.tar.xz
dexon-17d67c5834679f2b27ef08eddfce3b3a154a96a8.tar.zst
dexon-17d67c5834679f2b27ef08eddfce3b3a154a96a8.zip
Merge pull request #18087 from karalabe/trie-read-cacher
cmd, core, eth, light, trie: add trie read caching layer
Diffstat (limited to 'eth/config.go')
-rw-r--r--eth/config.go22
1 files changed, 12 insertions, 10 deletions
diff --git a/eth/config.go b/eth/config.go
index e32c01a73..601f4735e 100644
--- a/eth/config.go
+++ b/eth/config.go
@@ -43,15 +43,16 @@ var DefaultConfig = Config{
DatasetsInMem: 1,
DatasetsOnDisk: 2,
},
- NetworkId: 1,
- LightPeers: 100,
- DatabaseCache: 768,
- TrieCache: 256,
- TrieTimeout: 60 * time.Minute,
- MinerGasFloor: 8000000,
- MinerGasCeil: 8000000,
- MinerGasPrice: big.NewInt(params.GWei),
- MinerRecommit: 3 * time.Second,
+ NetworkId: 1,
+ LightPeers: 100,
+ DatabaseCache: 512,
+ TrieCleanCache: 256,
+ TrieDirtyCache: 256,
+ TrieTimeout: 60 * time.Minute,
+ MinerGasFloor: 8000000,
+ MinerGasCeil: 8000000,
+ MinerGasPrice: big.NewInt(params.GWei),
+ MinerRecommit: 3 * time.Second,
TxPool: core.DefaultTxPoolConfig,
GPO: gasprice.Config{
@@ -94,7 +95,8 @@ type Config struct {
SkipBcVersionCheck bool `toml:"-"`
DatabaseHandles int `toml:"-"`
DatabaseCache int
- TrieCache int
+ TrieCleanCache int
+ TrieDirtyCache int
TrieTimeout time.Duration
// Mining-related options