Răsfoiți Sursa

Add genesis block total difficulty in tests

Gustav Simonsson 10 ani în urmă
părinte
comite
2808409fbd
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      core/chain_manager.go

+ 1 - 0
core/chain_manager.go

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