From 8d6aa1782de8e50bcb07e0d165114da9ba0022b4 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 25 Feb 2022 13:08:02 +0300 Subject: [PATCH] core: fix StateRootInHeader error message for (*Blockchain).init() --- pkg/core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index 0546f1eb8..88d4d7c3a 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -336,7 +336,7 @@ func (bc *Blockchain) init() error { } if ver.StateRootInHeader != bc.config.StateRootInHeader { return fmt.Errorf("StateRootInHeader setting mismatch (config=%t, db=%t)", - ver.StateRootInHeader, bc.config.StateRootInHeader) + bc.config.StateRootInHeader, ver.StateRootInHeader) } if ver.P2PSigExtensions != bc.config.P2PSigExtensions { return fmt.Errorf("P2PSigExtensions setting mismatch (old=%t, new=%t)",