mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 05:41:35 +00:00
Fixed calculate reward for whole block checkpoint reward number.
This commit is contained in:
parent
eb8922c652
commit
78787916b0
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
|
|||
if number > 0 && prevCheckpoint > 0 {
|
||||
// Not reward for singer of genesis block and only calculate reward at checkpoint block.
|
||||
startBlockNumber := number - (rCheckpoint * 2) + 1
|
||||
endBlockNumber := startBlockNumber + rCheckpoint - 2
|
||||
endBlockNumber := startBlockNumber + rCheckpoint - 1
|
||||
signers := make(map[common.Address]*rewardLog)
|
||||
validators := make(map[common.Address]*rewardLog)
|
||||
totalSigner := uint64(0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue