diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-24 22:27:05 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-24 22:27:05 +0800 |
commit | 9de1ad65460898ab79c02ce076f1a2b0a7144656 (patch) | |
tree | 60cfbd81d5974fbab2f905749db70ddde4034ea3 /core | |
parent | ff9d66e096e853883c269b41cc94b17d4bc95261 (diff) | |
download | dexon-9de1ad65460898ab79c02ce076f1a2b0a7144656.tar.gz dexon-9de1ad65460898ab79c02ce076f1a2b0a7144656.tar.zst dexon-9de1ad65460898ab79c02ce076f1a2b0a7144656.zip |
fixed tests
Diffstat (limited to 'core')
-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 6e8f7b4fe..f0d3fd4cf 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.Set(td) + bc.td = td } func (self *ChainManager) CalcTotalDiff(block *types.Block) (*big.Int, error) { |