Add genesis block total difficulty in tests

This commit is contained in:
Gustav Simonsson 2015-05-06 23:22:49 +02:00
parent 323216ed85
commit 2808409fbd
1 changed files with 1 additions and 0 deletions

View File

@ -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)