From 50f6a21ba802ebeead4b4cb1ce0fe7527a917826 Mon Sep 17 00:00:00 2001 From: nicksavers Date: Tue, 7 Oct 2014 16:52:27 +0200 Subject: [PATCH] Fix uncle inclusion reward --- .../src/main/java/org/ethereum/core/BlockchainImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereumj-core/src/main/java/org/ethereum/core/BlockchainImpl.java b/ethereumj-core/src/main/java/org/ethereum/core/BlockchainImpl.java index b75f8b43..d24aa111 100644 --- a/ethereumj-core/src/main/java/org/ethereum/core/BlockchainImpl.java +++ b/ethereumj-core/src/main/java/org/ethereum/core/BlockchainImpl.java @@ -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);