From c937579855c4f1e3c57c380747bc09e23909c84c Mon Sep 17 00:00:00 2001 From: XMR Miners Club <71138782+xmrminers@users.noreply.github.com> Date: Sun, 3 Jan 2021 21:30:13 -0500 Subject: [PATCH] Update api.js support for solofee and finders reward --- lib/api.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/api.js b/lib/api.js index e20e4f7..bf7fec3 100644 --- a/lib/api.js +++ b/lib/api.js @@ -395,7 +395,8 @@ function collectStats () { cnVariant: config.cnVariant || 0, cnBlobType: config.cnBlobType || 0, hashrateWindow: config.api.hashrateWindow, - fee: config.blockUnlocker.poolFee, + fee: config.blockUnlocker.poolFee || 0, + soloFee: config.blockUnlocker.soloFee >= 0 ? config.blockUnlocker.soloFee : (config.blockUnlocker.poolFee > 0 ? config.blockUnlocker.poolFee : 0), networkFee: config.blockUnlocker.networkFee || 0, coin: config.coin, coinUnits: config.coinUnits, @@ -403,6 +404,7 @@ function collectStats () { coinDifficultyTarget: config.coinDifficultyTarget, symbol: config.symbol, depth: config.blockUnlocker.depth, + finderReward: config.blockUnlocker.finderReward || 0, donation: donations, version: version, paymentsInterval: config.payments.interval,