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.');