From 2808409fbde922722e238ce319e57bb5046febc1 Mon Sep 17 00:00:00 2001 From: Gustav Simonsson Date: Wed, 6 May 2015 23:22:49 +0200 Subject: [PATCH] Add genesis block total difficulty in tests --- core/chain_manager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/chain_manager.go b/core/chain_manager.go index 29830188e3..0837c85be5 100644 --- a/core/chain_manager.go +++ b/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)