aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_manager.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-05-07 05:22:49 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-05-07 05:22:49 +0800
commit2808409fbde922722e238ce319e57bb5046febc1 (patch)
treeb4559614629380bd353976d2b23f3f35b419146c /core/chain_manager.go
parent323216ed85b48abec07266a203b731e7491d4286 (diff)
downloaddexon-2808409fbde922722e238ce319e57bb5046febc1.tar.gz
dexon-2808409fbde922722e238ce319e57bb5046febc1.tar.zst
dexon-2808409fbde922722e238ce319e57bb5046febc1.zip
Add genesis block total difficulty in tests
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r--core/chain_manager.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go
index 29830188e..0837c85be 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)