Add genesis block total difficulty in tests

pull/867/head
Gustav Simonsson 10 years ago
parent 323216ed85
commit 2808409fbd
  1. 1
      core/chain_manager.go

@ -320,6 +320,7 @@ func (bc *ChainManager) ResetWithGenesisBlock(gb *types.Block) {
} }
// Prepare the genesis block // Prepare the genesis block
gb.Td = gb.Difficulty()
bc.genesisBlock = gb bc.genesisBlock = gb
bc.write(bc.genesisBlock) bc.write(bc.genesisBlock)
bc.insert(bc.genesisBlock) bc.insert(bc.genesisBlock)

Loading…
Cancel
Save