瀏覽代碼

Add genesis block total difficulty in tests

Gustav Simonsson 10 年之前
父節點
當前提交
2808409fbd
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)