Skip to content

Commit 2808409

Browse files
author
Gustav Simonsson
committed
Add genesis block total difficulty in tests
1 parent 323216e commit 2808409

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/chain_manager.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ func (bc *ChainManager) ResetWithGenesisBlock(gb *types.Block) {
320320
}
321321

322322
// Prepare the genesis block
323+
gb.Td = gb.Difficulty()
323324
bc.genesisBlock = gb
324325
bc.write(bc.genesisBlock)
325326
bc.insert(bc.genesisBlock)

0 commit comments

Comments
 (0)