From 17bbc68b74af1c685e6e57ee82b7ae1fcbb2cdd9 Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 20 Mar 2014 17:11:39 -0600 Subject: [PATCH] Updated readme with payment processing updates --- README.md | 14 +++++++------- libs/paymentProcessor.js | 9 ++++----- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 31cf3bd..fc6cb2e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ #### Node Open Mining Portal This portal is an extremely efficient, highly scalable, all-in-one, easy to setup cryptocurrency mining pool written -entirely in Node.js. It contains a stratum poolserver, reward/payment/share processor (*not yet completed*), and +entirely in Node.js. It contains a stratum poolserver, reward/payment/share processor, and front-end website (*not yet completed*). #### Features @@ -197,13 +197,13 @@ Description of options: /* (2% default) What percent fee your pool takes from the block reward. */ "feePercent": 0.02, - /* Your address that receives pool revenue from fees */ - "feeReceiveAddress": "LZz44iyF4zLCXJTU8RxztyyJZBntdS6fvv", + /* (Not implemented yet) Your address that receives pool revenue from fees */ + //"feeReceiveAddress": "LZz44iyF4zLCXJTU8RxztyyJZBntdS6fvv", - /* How many coins from fee revenue must accumulate on top of the minimum reserve amount - in order to trigger withdrawal to fee address. The higher this threshold, the less of - your profit goes to transactions fees. */ - "feeWithdrawalThreshold": 5, + /* (Not implemented yet) How many coins from fee revenue must accumulate on top of the + minimum reserve amount in order to trigger withdrawal to fee address. The higher + this threshold, the less of your profit goes to transactions fees. */ + //"feeWithdrawalThreshold": 5, /* This daemon is used to send out payments. It MUST be for the daemon that owns the configured 'address' that receives the block rewards, otherwise the daemon will not diff --git a/libs/paymentProcessor.js b/libs/paymentProcessor.js index c68fc98..ab1bde7 100644 --- a/libs/paymentProcessor.js +++ b/libs/paymentProcessor.js @@ -387,7 +387,9 @@ function SetupForPool(logger, poolOptions){ var withdrawalProfit = function(){ - try{ + + if (!processingConfig.feeWithdrawalThreshold) return; + daemon.cmd('getbalance', [], function(results){ var totalBalance = results[0].response; @@ -404,10 +406,7 @@ function SetupForPool(logger, poolOptions){ } }); - } - catch(e){ - throw e; - } + };