diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-24 20:38:16 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-24 20:38:16 +0800 |
commit | 0ec171ccdfb7514605e7fe16889b4f79904faf76 (patch) | |
tree | 484cf2f8e09952c417a7501dc62cd4e100aecc9c /core/chain_manager.go | |
parent | eab8f7355de56a6a9128b283c560d00e85c000c4 (diff) | |
download | go-tangerine-0ec171ccdfb7514605e7fe16889b4f79904faf76.tar.gz go-tangerine-0ec171ccdfb7514605e7fe16889b4f79904faf76.tar.zst go-tangerine-0ec171ccdfb7514605e7fe16889b4f79904faf76.zip |
Copy fix
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r-- | core/chain_manager.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index f0d3fd4cf..6e8f7b4fe 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -399,7 +399,7 @@ func (self *ChainManager) GetAncestors(block *types.Block, length int) (blocks [ func (bc *ChainManager) setTotalDifficulty(td *big.Int) { bc.blockDb.Put([]byte("LTD"), td.Bytes()) - bc.td = td + bc.td.Set(td) } func (self *ChainManager) CalcTotalDiff(block *types.Block) (*big.Int, error) { |