Explorar o código

Add genesis block total difficulty in tests

Gustav Simonsson %!s(int64=10) %!d(string=hai) anos
pai
achega
2808409fbd
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)