Added config options for internal payments

This commit is contained in:
Matt 2014-03-05 17:33:07 -07:00
parent 6e91351af2
commit 318ad05de9
3 changed files with 8 additions and 2 deletions

View File

@ -117,6 +117,12 @@ Description of options:
"shareProcessing": { "shareProcessing": {
"internal": { //enabled this options for share payments to be processed and sent locally "internal": { //enabled this options for share payments to be processed and sent locally
"enabled": true, "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 /* 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 'address' field above, otherwise the daemon will not be able to confirm blocks
or sent out payments. */ or sent out payments. */

View File

@ -30,8 +30,6 @@ module.exports = function(logger, poolConfig){
connect(); connect();
this.handleShare = function(isValidShare, isValidBlock, shareData){ this.handleShare = function(isValidShare, isValidBlock, shareData){

View File

@ -23,6 +23,8 @@
"shareProcessing": { "shareProcessing": {
"internal": { "internal": {
"enabled": true, "enabled": true,
"validateWorkAddress": true,
"paymentInterval": 30,
"daemon": { "daemon": {
"host": "localhost", "host": "localhost",
"port": 19332, "port": 19332,