This commit is contained in:
obscuren
2015-03-24 13:38:16 +01:00
parent eab8f7355d
commit 0ec171ccdf
2 changed files with 10 additions and 3 deletions

View File

@ -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) {