Very miner code reformatting

This commit is contained in:
Matt 2014-02-20 00:14:19 -07:00
parent a202be4976
commit 422822ff14

View File

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