From 0cc64e0f0ff266f03770c4b1501fb74c1dc36859 Mon Sep 17 00:00:00 2001 From: ledgerwatch Date: Tue, 18 May 2021 15:27:39 +0100 Subject: [PATCH] Fix storageMode bug (no writing receipts/logs by default) (#1958) Co-authored-by: Alex Sharp --- eth/backend.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eth/backend.go b/eth/backend.go index 62839775f..db83579f3 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -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 {