mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-02-03 07:33:33 +00:00
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…
x
Reference in New Issue
Block a user