aboutsummaryrefslogtreecommitdiffstats
path: root/core/blockchain.go
diff options
context:
space:
mode:
authorBojie Wu <bojie@dexon.org>2018-10-09 13:28:45 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:16 +0800
commitc690ad54f5a872728d4476ddb891892a5f93aec0 (patch)
tree8d10c9acb8cb409268efa68eef5ecfb4b7f74343 /core/blockchain.go
parentc87eec6ae59687d8a041140bf02add6ad1ef9788 (diff)
downloadgo-tangerine-c690ad54f5a872728d4476ddb891892a5f93aec0.tar
go-tangerine-c690ad54f5a872728d4476ddb891892a5f93aec0.tar.gz
go-tangerine-c690ad54f5a872728d4476ddb891892a5f93aec0.tar.bz2
go-tangerine-c690ad54f5a872728d4476ddb891892a5f93aec0.tar.lz
go-tangerine-c690ad54f5a872728d4476ddb891892a5f93aec0.tar.xz
go-tangerine-c690ad54f5a872728d4476ddb891892a5f93aec0.tar.zst
go-tangerine-c690ad54f5a872728d4476ddb891892a5f93aec0.zip
app: check nonce and balance in prepare payload
Diffstat (limited to 'core/blockchain.go')
-rw-r--r--core/blockchain.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index e59c36653..d2999f926 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -28,10 +28,9 @@ import (
"sync/atomic"
"time"
- "github.com/hashicorp/golang-lru"
-
coreCommon "github.com/dexon-foundation/dexon-consensus-core/common"
coreTypes "github.com/dexon-foundation/dexon-consensus-core/core/types"
+ lru "github.com/hashicorp/golang-lru"
"github.com/dexon-foundation/dexon/common"
"github.com/dexon-foundation/dexon/common/mclock"
@@ -1620,10 +1619,11 @@ func (bc *BlockChain) insertPendingBlocks(chain types.Blocks) (int, []interface{
proctime := time.Since(bstart)
// commit state to refresh stateCache
- _, err = pendingState.Commit(true)
+ root, err := pendingState.Commit(true)
if err != nil {
return i, nil, nil, fmt.Errorf("pendingState commit error: %v", err)
}
+ log.Info("commit pending root", "hash", root)
// add into pending blocks
bc.pendingBlocks[block.NumberU64()] = struct {