Reference pointer to block instead of pointer to function
This commit is contained in:
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user