Skip to content

Commit 241843c

Browse files
authored
chg : trieTimeout from 60 to 10 mins (ethereum#692)
* chg : trieTimeout from 60 to 10 mins * chg : cache.timout to 10m from 1h in configs
1 parent e4dd2ee commit 241843c

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

builder/files/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ syncmode = "full"
129129
# preimages = false
130130
# txlookuplimit = 2350000
131131
# triesinmemory = 128
132-
# timeout = "1h0m0s"
132+
# timeout = "10m0s"
133133

134134
[accounts]
135135
# allow-insecure-unlock = true

docs/cli/example_config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ ethstats = "" # Reporting URL of a ethstats service (nodename:sec
132132
preimages = false # Enable recording the SHA3/keccak preimages of trie keys
133133
txlookuplimit = 2350000 # Number of recent blocks to maintain transactions index for (default = about 56 days, 0 = entire chain)
134134
triesinmemory = 128 # Number of block states (tries) to keep in memory
135-
timeout = "1h0m0s" # Time after which the Merkle Patricia Trie is stored to disc from memory
135+
timeout = "10m0s" # Time after which the Merkle Patricia Trie is stored to disc from memory
136136

137137
[accounts]
138138
unlock = [] # Comma separated list of accounts to unlock

internal/cli/server/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ func DefaultConfig() *Config {
565565
Preimages: false,
566566
TxLookupLimit: 2350000,
567567
TriesInMemory: 128,
568-
TrieTimeout: 60 * time.Minute,
568+
TrieTimeout: 10 * time.Minute,
569569
},
570570
Accounts: &AccountsConfig{
571571
Unlock: []string{},

packaging/templates/mainnet-v1/archive/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ gcmode = "archive"
120120
# noprefetch = false
121121
# preimages = false
122122
# txlookuplimit = 2350000
123-
# timeout = "1h0m0s"
123+
# timeout = "10m0s"
124124

125125
# [accounts]
126126
# unlock = []

packaging/templates/mainnet-v1/sentry/sentry/bor/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ syncmode = "full"
120120
# noprefetch = false
121121
# preimages = false
122122
# txlookuplimit = 2350000
123-
# timeout = "1h0m0s"
123+
# timeout = "10m0s"
124124

125125
# [accounts]
126126
# unlock = []

packaging/templates/mainnet-v1/sentry/validator/bor/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ syncmode = "full"
122122
# noprefetch = false
123123
# preimages = false
124124
# txlookuplimit = 2350000
125-
# timeout = "1h0m0s"
125+
# timeout = "10m0s"
126126

127127
[accounts]
128128
allow-insecure-unlock = true

packaging/templates/mainnet-v1/without-sentry/bor/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ syncmode = "full"
122122
# noprefetch = false
123123
# preimages = false
124124
# txlookuplimit = 2350000
125-
# timeout = "1h0m0s"
125+
# timeout = "10m0s"
126126

127127
[accounts]
128128
allow-insecure-unlock = true

packaging/templates/testnet-v4/archive/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ gcmode = "archive"
120120
# noprefetch = false
121121
# preimages = false
122122
# txlookuplimit = 2350000
123-
# timeout = "1h0m0s"
123+
# timeout = "10m0s"
124124

125125
# [accounts]
126126
# unlock = []

packaging/templates/testnet-v4/sentry/sentry/bor/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ syncmode = "full"
120120
# noprefetch = false
121121
# preimages = false
122122
# txlookuplimit = 2350000
123-
# timeout = "1h0m0s"
123+
# timeout = "10m0s"
124124

125125
# [accounts]
126126
# unlock = []

packaging/templates/testnet-v4/sentry/validator/bor/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ syncmode = "full"
122122
# noprefetch = false
123123
# preimages = false
124124
# txlookuplimit = 2350000
125-
# timeout = "1h0m0s"
125+
# timeout = "10m0s"
126126

127127
[accounts]
128128
allow-insecure-unlock = true

0 commit comments

Comments
 (0)