More reward fixes
@@ -70,12 +70,12 @@ namespace MiningCore.Blockchain.ZCash
BlockTemplate.Height >= coinbaseTxConfig.TreasuryRewardStartBlockHeight)
{
// pool reward (t-addr)
- var amount = new Money(Math.Round(blockReward * (1m - (coinbaseTxConfig.PercentTreasuryReward) / 100m)) + rewardFees, MoneyUnit.Satoshi);
- tx.AddOutput(amount, poolAddressDestination);
+ rewardToPool = new Money(Math.Round(blockReward * (1m - (coinbaseTxConfig.PercentTreasuryReward) / 100m)) + rewardFees, MoneyUnit.Satoshi);
+ tx.AddOutput(rewardToPool, poolAddressDestination);
// treasury reward (t-addr)
var destination = FoundersAddressToScriptDestination(GetTreasuryRewardAddress());
- amount = new Money(Math.Round(blockReward * (coinbaseTxConfig.PercentTreasuryReward / 100m)), MoneyUnit.Satoshi);
+ var amount = new Money(Math.Round(blockReward * (coinbaseTxConfig.PercentTreasuryReward / 100m)), MoneyUnit.Satoshi);
tx.AddOutput(amount, destination);
}
