From 422822ff14f17742da33e32e7d00e16d7edea41a Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 20 Feb 2014 00:14:19 -0700 Subject: [PATCH] Very miner code reformatting --- lib/pool.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pool.js b/lib/pool.js index 62bb64e..85931a2 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -197,10 +197,8 @@ var pool = module.exports = function pool(options, authorizeFn){ }); }, submitMethod: function(callback){ - /* - This checks to see whether the daemon uses submitblock - or getblocktemplate for submitting new blocks - */ + /* This checks to see whether the daemon uses submitblock + or getblocktemplate for submitting new blocks */ _this.daemon.cmd('submitblock', [], function(error, result){ @@ -215,7 +213,9 @@ var pool = module.exports = function pool(options, authorizeFn){ if (err) return; emitLog('system','Connected to daemon'); + options.hasSubmitMethod = results.submitMethod; + if (options.reward === 'POS' && typeof(results.addressInfo.pubkey) == 'undefined') { // address provided is not of the wallet. emitErrorLog('system', 'The address provided is not from the daemon wallet.');