From 05d7f2eef22fe95bdac8abbb343c560c057cc6f8 Mon Sep 17 00:00:00 2001 From: Daniil Lashin <3121312+danil-lashin@users.noreply.github.com> Date: Fri, 20 Dec 2019 14:25:14 +0300 Subject: [PATCH] Fix --- core/minter/minter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/minter/minter.go b/core/minter/minter.go index c8f17945c..99aa56628 100644 --- a/core/minter/minter.go +++ b/core/minter/minter.go @@ -389,7 +389,7 @@ func (app *Blockchain) CheckTx(req abciTypes.RequestCheckTx) abciTypes.ResponseC // Commit the state and return the application Merkle root hash func (app *Blockchain) Commit() abciTypes.ResponseCommit { - if app.height > 1 { + if app.height > app.appDB.GetStartHeight() + 1 { if err := app.stateDeliver.Check(); err != nil { panic(err) }