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 115109b commit 84edc2d
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 @@ -642,7 +642,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 84edc2d

Please sign in to comment.