Skip to content

Commit

Permalink
chg : trieTimeout from 60 to 10 mins (#692)
Browse files Browse the repository at this point in the history
* chg : trieTimeout from 60 to 10 mins

* chg : cache.timout to 10m from 1h in configs
  • Loading branch information
0xsharma authored Jan 19, 2023
1 parent e4dd2ee commit 241843c
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion builder/files/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ syncmode = "full"
# preimages = false
# txlookuplimit = 2350000
# triesinmemory = 128
# timeout = "1h0m0s"
# timeout = "10m0s"

[accounts]
# allow-insecure-unlock = true
Expand Down
2 changes: 1 addition & 1 deletion docs/cli/example_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ ethstats = "" # Reporting URL of a ethstats service (nodename:sec
preimages = false # Enable recording the SHA3/keccak preimages of trie keys
txlookuplimit = 2350000 # Number of recent blocks to maintain transactions index for (default = about 56 days, 0 = entire chain)
triesinmemory = 128 # Number of block states (tries) to keep in memory
timeout = "1h0m0s" # Time after which the Merkle Patricia Trie is stored to disc from memory
timeout = "10m0s" # Time after which the Merkle Patricia Trie is stored to disc from memory

[accounts]
unlock = [] # Comma separated list of accounts to unlock
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ func DefaultConfig() *Config {
Preimages: false,
TxLookupLimit: 2350000,
TriesInMemory: 128,
TrieTimeout: 60 * time.Minute,
TrieTimeout: 10 * time.Minute,
},
Accounts: &AccountsConfig{
Unlock: []string{},
Expand Down
2 changes: 1 addition & 1 deletion packaging/templates/mainnet-v1/archive/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ gcmode = "archive"
# noprefetch = false
# preimages = false
# txlookuplimit = 2350000
# timeout = "1h0m0s"
# timeout = "10m0s"

# [accounts]
# unlock = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ syncmode = "full"
# noprefetch = false
# preimages = false
# txlookuplimit = 2350000
# timeout = "1h0m0s"
# timeout = "10m0s"

# [accounts]
# unlock = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ syncmode = "full"
# noprefetch = false
# preimages = false
# txlookuplimit = 2350000
# timeout = "1h0m0s"
# timeout = "10m0s"

[accounts]
allow-insecure-unlock = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ syncmode = "full"
# noprefetch = false
# preimages = false
# txlookuplimit = 2350000
# timeout = "1h0m0s"
# timeout = "10m0s"

[accounts]
allow-insecure-unlock = true
Expand Down
2 changes: 1 addition & 1 deletion packaging/templates/testnet-v4/archive/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ gcmode = "archive"
# noprefetch = false
# preimages = false
# txlookuplimit = 2350000
# timeout = "1h0m0s"
# timeout = "10m0s"

# [accounts]
# unlock = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ syncmode = "full"
# noprefetch = false
# preimages = false
# txlookuplimit = 2350000
# timeout = "1h0m0s"
# timeout = "10m0s"

# [accounts]
# unlock = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ syncmode = "full"
# noprefetch = false
# preimages = false
# txlookuplimit = 2350000
# timeout = "1h0m0s"
# timeout = "10m0s"

[accounts]
allow-insecure-unlock = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ syncmode = "full"
# noprefetch = false
# preimages = false
# txlookuplimit = 2350000
# timeout = "1h0m0s"
# timeout = "10m0s"

[accounts]
allow-insecure-unlock = true
Expand Down

0 comments on commit 241843c

Please sign in to comment.