diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-13 21:57:51 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-13 21:57:51 +0800 |
commit | 82beaabf6a8b5a146a38e1d6a31a78157c79a0cf (patch) | |
tree | 7fb0dca9275c17e81fb381b749d46a4ad43bc324 /core/block_processor.go | |
parent | e3cad04decbbc83a0c956850717cb0ae0b2b3eec (diff) | |
download | dexon-82beaabf6a8b5a146a38e1d6a31a78157c79a0cf.tar.gz dexon-82beaabf6a8b5a146a38e1d6a31a78157c79a0cf.tar.zst dexon-82beaabf6a8b5a146a38e1d6a31a78157c79a0cf.zip |
Fixed consensus issue
Diffstat (limited to 'core/block_processor.go')
-rw-r--r-- | core/block_processor.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/block_processor.go b/core/block_processor.go index 4d93fcead..6224d7c59 100644 --- a/core/block_processor.go +++ b/core/block_processor.go @@ -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())) } |