Fixed consensus issue

This commit is contained in:
obscuren
2015-01-13 14:57:51 +01:00
parent e3cad04dec
commit 82beaabf6a
4 changed files with 4 additions and 6 deletions

View File

@ -271,7 +271,7 @@ func (sm *BlockProcessor) AccumelateRewards(statedb *state.StateDB, block, paren
reward := new(big.Int).Set(BlockReward)
ancestors := set.New()
for _, ancestor := range sm.bc.GetAncestors(block, 6) {
for _, ancestor := range sm.bc.GetAncestors(block, 7) {
ancestors.Add(string(ancestor.Hash()))
}