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

@ -168,7 +168,7 @@ func (bc *ChainManager) NewBlock(coinbase []byte) *types.Block {
var root []byte var root []byte
parentHash := ZeroHash256 parentHash := ZeroHash256
if bc.CurrentBlock != nil { if bc.currentBlock != nil {
root = bc.currentBlock.Header().Root root = bc.currentBlock.Header().Root
parentHash = bc.lastBlockHash parentHash = bc.lastBlockHash
} }