Fix storageMode bug (no writing receipts/logs by default) (#1958)

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
This commit is contained in:
ledgerwatch 2021-05-18 15:27:39 +01:00 committed by GitHub
parent cceaf75b16
commit 0cc64e0f0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,6 +209,8 @@ func New(stack *node.Node, config *ethconfig.Config, gitCommit string) (*Ethereu
if !reflect.DeepEqual(sm, config.StorageMode) {
return nil, errors.New("mode is " + config.StorageMode.ToString() + " original mode is " + sm.ToString())
}
} else {
config.StorageMode = sm
}
if sm.Pruning && !backend.config.EnableDownloadV2 {