|
@@ -1542,6 +1542,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config) {
|
|
|
cfg.SnapshotCache = ctx.GlobalInt(CacheFlag.Name) * ctx.GlobalInt(CacheSnapshotFlag.Name) / 100
|
|
cfg.SnapshotCache = ctx.GlobalInt(CacheFlag.Name) * ctx.GlobalInt(CacheSnapshotFlag.Name) / 100
|
|
|
}
|
|
}
|
|
|
if !ctx.GlobalIsSet(SnapshotFlag.Name) {
|
|
if !ctx.GlobalIsSet(SnapshotFlag.Name) {
|
|
|
|
|
+ cfg.TrieCleanCache += cfg.SnapshotCache
|
|
|
cfg.SnapshotCache = 0 // Disabled
|
|
cfg.SnapshotCache = 0 // Disabled
|
|
|
}
|
|
}
|
|
|
if ctx.GlobalIsSet(DocRootFlag.Name) {
|
|
if ctx.GlobalIsSet(DocRootFlag.Name) {
|