diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-05-07 05:22:49 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-05-07 05:22:49 +0800 |
commit | 2808409fbde922722e238ce319e57bb5046febc1 (patch) | |
tree | b4559614629380bd353976d2b23f3f35b419146c /core | |
parent | 323216ed85b48abec07266a203b731e7491d4286 (diff) | |
download | dexon-2808409fbde922722e238ce319e57bb5046febc1.tar.gz dexon-2808409fbde922722e238ce319e57bb5046febc1.tar.zst dexon-2808409fbde922722e238ce319e57bb5046febc1.zip |
Add genesis block total difficulty in tests
Diffstat (limited to 'core')
-rw-r--r-- | core/chain_manager.go | 1 |
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) |