mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
Revert "enable preimage for hash only"
This reverts commit 623d45a1d2.
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
623d45a1d2
commit
c66e81a7f3
1 changed files with 2 additions and 4 deletions
|
|
@ -1634,11 +1634,9 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
|
||||||
}
|
}
|
||||||
// Read the value from the flag no matter if it's set or not.
|
// Read the value from the flag no matter if it's set or not.
|
||||||
cfg.Preimages = ctx.Bool(CachePreimagesFlag.Name)
|
cfg.Preimages = ctx.Bool(CachePreimagesFlag.Name)
|
||||||
// Only check the user's input for hash mode here; path is the default scheme,
|
if cfg.NoPruning && !cfg.Preimages {
|
||||||
// so we don't need to check the actual database scheme.
|
|
||||||
if cfg.NoPruning && !cfg.Preimages && ctx.String(StateSchemeFlag.Name) == rawdb.HashScheme {
|
|
||||||
cfg.Preimages = true
|
cfg.Preimages = true
|
||||||
log.Info("Enabling recording of key preimages: required for archive mode with hash state scheme")
|
log.Info("Enabling recording of key preimages since archive mode is used")
|
||||||
}
|
}
|
||||||
if ctx.IsSet(StateHistoryFlag.Name) {
|
if ctx.IsSet(StateHistoryFlag.Name) {
|
||||||
cfg.StateHistory = ctx.Uint64(StateHistoryFlag.Name)
|
cfg.StateHistory = ctx.Uint64(StateHistoryFlag.Name)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue