Update api.js

support for solofee and finders reward
This commit is contained in:
XMR Miners Club
2021-01-03 21:30:13 -05:00
committed by GitHub
parent ff33d02b86
commit c937579855

View File

@@ -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,