aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_manager.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-15 09:09:57 +0800
committerobscuren <geffobscura@gmail.com>2015-02-15 09:09:57 +0800
commitb143dad596f4230d74dadd3c5060020bd50ef7f3 (patch)
treefb44546a18a3627abf9bb1a4b076791e0cf55568 /core/chain_manager.go
parent16ae675107c150f3373bc8f6ae0647b27f4f0b4e (diff)
downloaddexon-b143dad596f4230d74dadd3c5060020bd50ef7f3.tar.gz
dexon-b143dad596f4230d74dadd3c5060020bd50ef7f3.tar.zst
dexon-b143dad596f4230d74dadd3c5060020bd50ef7f3.zip
Reference pointer to block instead of pointer to function
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r--core/chain_manager.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go
index 308e958fe..54f1ced8c 100644
--- a/core/chain_manager.go
+++ b/core/chain_manager.go
@@ -168,7 +168,7 @@ func (bc *ChainManager) NewBlock(coinbase []byte) *types.Block {
var root []byte
parentHash := ZeroHash256
- if bc.CurrentBlock != nil {
+ if bc.currentBlock != nil {
root = bc.currentBlock.Header().Root
parentHash = bc.lastBlockHash
}