mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-27 16:17:22 +00:00
Add genesis block total difficulty in tests
This commit is contained in:
parent
323216ed85
commit
2808409fbd
1 changed files with 1 additions and 0 deletions
|
|
@ -320,6 +320,7 @@ func (bc *ChainManager) ResetWithGenesisBlock(gb *types.Block) {
|
|||
}
|
||||
|
||||
// Prepare the genesis block
|
||||
gb.Td = gb.Difficulty()
|
||||
bc.genesisBlock = gb
|
||||
bc.write(bc.genesisBlock)
|
||||
bc.insert(bc.genesisBlock)
|
||||
|
|
|
|||
Loading…
Reference in a new issue