mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +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.
|
||||
cfg.Preimages = ctx.Bool(CachePreimagesFlag.Name)
|
||||
// Only check the user's input for hash mode here; path is the default scheme,
|
||||
// so we don't need to check the actual database scheme.
|
||||
if cfg.NoPruning && !cfg.Preimages && ctx.String(StateSchemeFlag.Name) == rawdb.HashScheme {
|
||||
if cfg.NoPruning && !cfg.Preimages {
|
||||
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) {
|
||||
cfg.StateHistory = ctx.Uint64(StateHistoryFlag.Name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue