diff --git a/src/Miningcore/Blockchain/Cryptonote/CryptonoteConstants.cs b/src/Miningcore/Blockchain/Cryptonote/CryptonoteConstants.cs index 283628dd6..1813d4b70 100644 --- a/src/Miningcore/Blockchain/Cryptonote/CryptonoteConstants.cs +++ b/src/Miningcore/Blockchain/Cryptonote/CryptonoteConstants.cs @@ -46,7 +46,7 @@ public static class MoreloConstants { public const decimal MoreloReserveRewardInitial = 5.555m; // MiningReward = BlockReward - ReserveReward public const decimal MoreloStaticTransactionFeeReserve = 1.0m; // Deduct static reserve for tx fees - + public const int MoreloMinBlockConfirmations = 18; } public static class EquilibriaConstants diff --git a/src/Miningcore/Blockchain/Cryptonote/CryptonotePayoutHandler.cs b/src/Miningcore/Blockchain/Cryptonote/CryptonotePayoutHandler.cs index aa148faa0..f2132b52d 100644 --- a/src/Miningcore/Blockchain/Cryptonote/CryptonotePayoutHandler.cs +++ b/src/Miningcore/Blockchain/Cryptonote/CryptonotePayoutHandler.cs @@ -410,8 +410,9 @@ public async Task ClassifyBlocksAsync(IMiningPool pool, Block[] blocks, var blockHeader = rpcResult.Response.BlockHeader; - // update progress - block.ConfirmationProgress = Math.Min(1.0d, (double) blockHeader.Depth / CryptonoteConstants.PayoutMinBlockConfirmations); + // update progressint + int PayoutMinBlockConfirmations = (coin.Symbol == "MRL") ? MoreloConstants.MoreloMinBlockConfirmations : CryptonoteConstants.PayoutMinBlockConfirmations; + block.ConfirmationProgress = Math.Min(1.0d, (double) blockHeader.Depth / PayoutMinBlockConfirmations); result.Add(block); messageBus.NotifyBlockConfirmationProgress(poolConfig.Id, block, coin); @@ -427,7 +428,7 @@ public async Task ClassifyBlocksAsync(IMiningPool pool, Block[] blocks, } // matured and spendable? - if(blockHeader.Depth >= CryptonoteConstants.PayoutMinBlockConfirmations) + if(blockHeader.Depth >= PayoutMinBlockConfirmations) { block.Status = BlockStatus.Confirmed; block.ConfirmationProgress = 1;