cmd/utils: grant snapshot cache to trie if disabled (#21416)
* cmd/utils: grant snapshot cache to trie if disabled * eth: fix up default non-mainnet cache distribution
This commit is contained in:
		| @@ -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 | ||||
| 	} | ||||
| 	if !ctx.GlobalIsSet(SnapshotFlag.Name) { | ||||
| 		cfg.TrieCleanCache += cfg.SnapshotCache | ||||
| 		cfg.SnapshotCache = 0 // Disabled | ||||
| 	} | ||||
| 	if ctx.GlobalIsSet(DocRootFlag.Name) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user