From 318ad05de953efa70b5185ffd50850b25db231eb Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 5 Mar 2014 17:33:07 -0700 Subject: [PATCH] Added config options for internal payments --- README.md | 6 ++++++ libs/shareProcessor.js | 2 -- pool_configs/litecoin_testnet_example.json | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f5e03fc..08ed7d0 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,12 @@ Description of options: "shareProcessing": { "internal": { //enabled this options for share payments to be processed and sent locally "enabled": true, + /* When workers connect, to receive payments, their address must be used as the worker + name. If this option is true, on worker authentication, their address will be verified + via a validateaddress API call to the daemon. Miners with invalid addresses will be + rejected. */ + "validateWorkerAddress": true, + "paymentInterval": 30, //(seconds) check for confirmed blocks for sending payments /* This daemon is used to send out payments. It MUST be for the daemon that owns the 'address' field above, otherwise the daemon will not be able to confirm blocks or sent out payments. */ diff --git a/libs/shareProcessor.js b/libs/shareProcessor.js index 081a942..3d90075 100644 --- a/libs/shareProcessor.js +++ b/libs/shareProcessor.js @@ -30,8 +30,6 @@ module.exports = function(logger, poolConfig){ connect(); - - this.handleShare = function(isValidShare, isValidBlock, shareData){ diff --git a/pool_configs/litecoin_testnet_example.json b/pool_configs/litecoin_testnet_example.json index 892494d..c729d0e 100644 --- a/pool_configs/litecoin_testnet_example.json +++ b/pool_configs/litecoin_testnet_example.json @@ -23,6 +23,8 @@ "shareProcessing": { "internal": { "enabled": true, + "validateWorkAddress": true, + "paymentInterval": 30, "daemon": { "host": "localhost", "port": 19332,