Commit 2808409f authored by Gustav Simonsson's avatar Gustav Simonsson

Add genesis block total difficulty in tests

parent 323216ed
...@@ -320,6 +320,7 @@ func (bc *ChainManager) ResetWithGenesisBlock(gb *types.Block) { ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment