mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-17 05:26:36 +00:00
Reference pointer to block instead of pointer to function
This commit is contained in:
parent
16ae675107
commit
b143dad596
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue