Very miner code reformatting
This commit is contained in:
parent
a202be4976
commit
422822ff14
@ -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.');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user