Skip to content

Commit 81c2068

Browse files
committed
bugfix for onroad
1 parent e701aaa commit 81c2068

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

verifier/account_verifier.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package verifier
22

33
import (
44
"fmt"
5+
"math/big"
6+
57
"github.com/pkg/errors"
68
"github.com/vitelabs/go-vite/chain"
79
"github.com/vitelabs/go-vite/common/math"
@@ -13,7 +15,6 @@ import (
1315
"github.com/vitelabs/go-vite/pow"
1416
"github.com/vitelabs/go-vite/vm/util"
1517
"github.com/vitelabs/go-vite/vm_db"
16-
"math/big"
1718
)
1819

1920
type AccountType int
@@ -388,6 +389,8 @@ func (v *AccountVerifier) vmVerify(block *ledger.AccountBlock, snapshotHash *typ
388389
return nil, errors.New("vm failed, blockList is empty")
389390
}
390391

392+
vmBlock = genResult.VmBlock
393+
391394
// verify vm result block's hash
392395
if block.Hash != vmBlock.AccountBlock.Hash {
393396
return nil, errors.New("Inconsistent execution results in vm.")

0 commit comments

Comments
 (0)