Reference pointer to block instead of pointer to function

This commit is contained in:
obscuren 2015-02-15 02:09:57 +01:00
parent 16ae675107
commit b143dad596
1 changed files with 1 additions and 1 deletions

View File

@ -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
}