aboutsummaryrefslogtreecommitdiffstats
path: root/core
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
parent323216ed85b48abec07266a203b731e7491d4286 (diff)
downloadgo-tangerine-2808409fbde922722e238ce319e57bb5046febc1.tar
go-tangerine-2808409fbde922722e238ce319e57bb5046febc1.tar.gz
go-tangerine-2808409fbde922722e238ce319e57bb5046febc1.tar.bz2
go-tangerine-2808409fbde922722e238ce319e57bb5046febc1.tar.lz
go-tangerine-2808409fbde922722e238ce319e57bb5046febc1.tar.xz
go-tangerine-2808409fbde922722e238ce319e57bb5046febc1.tar.zst
go-tangerine-2808409fbde922722e238ce319e57bb5046febc1.zip
Add genesis block total difficulty in tests
Diffstat (limited to 'core')
-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)