diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-15 09:09:57 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-15 09:09:57 +0800 |
commit | b143dad596f4230d74dadd3c5060020bd50ef7f3 (patch) | |
tree | fb44546a18a3627abf9bb1a4b076791e0cf55568 /core | |
parent | 16ae675107c150f3373bc8f6ae0647b27f4f0b4e (diff) | |
download | go-tangerine-b143dad596f4230d74dadd3c5060020bd50ef7f3.tar.gz go-tangerine-b143dad596f4230d74dadd3c5060020bd50ef7f3.tar.zst go-tangerine-b143dad596f4230d74dadd3c5060020bd50ef7f3.zip |
Reference pointer to block instead of pointer to function
Diffstat (limited to 'core')
-rw-r--r-- | core/chain_manager.go | 2 |
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 } |