Fix uncle inclusion reward
This commit is contained in:
parent
040455d868
commit
50f6a21ba8
|
@ -190,7 +190,7 @@ public class BlockchainImpl implements Blockchain {
|
|||
for (BlockHeader uncle : block.getUncleList()) {
|
||||
repository.addBalance(uncle.getCoinbase(), Block.UNCLE_REWARD);
|
||||
}
|
||||
totalBlockReward.add(Block.INCLUSION_REWARD
|
||||
totalBlockReward = totalBlockReward.add(Block.INCLUSION_REWARD
|
||||
.multiply(BigInteger.valueOf(block.getUncleList().size())));
|
||||
}
|
||||
repository.addBalance(block.getCoinbase(), totalBlockReward);
|
||||
|
|
Loading…
Reference in New Issue