Merge branch 'master' of https://github.com/zone117x/node-stratum
Conflicts: lib/pool.js
This commit is contained in:
commit
e1c143de18
@ -81,10 +81,8 @@ var pool = module.exports = function pool(options, authorizeFn){
|
|||||||
_this.daemon.cmd('submitblock',
|
_this.daemon.cmd('submitblock',
|
||||||
[blockHex],
|
[blockHex],
|
||||||
function(error, result){
|
function(error, result){
|
||||||
console.log(JSON.stringify([error,result]));
|
|
||||||
emitLog('submitblock', JSON.stringify([error,result]));
|
emitLog('submitblock', JSON.stringify([error,result]));
|
||||||
|
|
||||||
|
|
||||||
if (error)
|
if (error)
|
||||||
emitErrorLog('submitblock', 'rpc error when submitting block with submitblock')
|
emitErrorLog('submitblock', 'rpc error when submitting block with submitblock')
|
||||||
else
|
else
|
||||||
@ -96,7 +94,8 @@ var pool = module.exports = function pool(options, authorizeFn){
|
|||||||
_this.daemon.cmd('getblocktemplate',
|
_this.daemon.cmd('getblocktemplate',
|
||||||
[{'mode': 'submit', 'data': blockHex}],
|
[{'mode': 'submit', 'data': blockHex}],
|
||||||
function(error, result){
|
function(error, result){
|
||||||
console.log(error, result);
|
emitLog('submitblock', JSON.stringify([error,result]));
|
||||||
|
|
||||||
if (error)
|
if (error)
|
||||||
emitErrorLog('submitblock', 'rpc error when submitting block with getblocktemplate')
|
emitErrorLog('submitblock', 'rpc error when submitting block with getblocktemplate')
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user