Skip to content

Commit

Permalink
Fix CommunityAddress Reward
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolin1579 committed Nov 23, 2023
1 parent 2d2510a commit c4d34b8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Miningcore/Blockchain/Bitcoin/BitcoinJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,6 @@ protected virtual Money CreateCommunityAddressOutputs(Transaction tx, Money rewa
if(BlockTemplate.CommunityAutonomousAddress != null && BlockTemplate.CommunityAutonomousValue > 0)
{
var payeeReward = BlockTemplate.CommunityAutonomousValue;
reward -= payeeReward;
var payeeAddress = BitcoinUtils.AddressToDestination(BlockTemplate.CommunityAutonomousAddress, network);
tx.Outputs.Add(payeeReward, payeeAddress);
}
Expand Down

0 comments on commit c4d34b8

Please sign in to comment.