mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-12-03 12:04:04 +01:00
Merge pull request #292 from bobbieltd/patch-4
Add return for uniform code (not a bug, comestics) -- Nice catch.
This commit is contained in:
+2
-2
@@ -26,7 +26,7 @@ function Coin(data){
|
|||||||
|
|
||||||
this.supportsAutoExchange = false;
|
this.supportsAutoExchange = false;
|
||||||
|
|
||||||
this.niceHashDiff = 200000;
|
this.niceHashDiff = 400000;
|
||||||
|
|
||||||
this.getBlockHeaderByID = function(blockId, callback){
|
this.getBlockHeaderByID = function(blockId, callback){
|
||||||
global.support.rpcDaemon('getblockheaderbyheight', {"height": blockId}, function (body) {
|
global.support.rpcDaemon('getblockheaderbyheight', {"height": blockId}, function (body) {
|
||||||
@@ -34,7 +34,7 @@ function Coin(data){
|
|||||||
return callback(null, body.result.block_header);
|
return callback(null, body.result.block_header);
|
||||||
} else {
|
} else {
|
||||||
console.error(JSON.stringify(body));
|
console.error(JSON.stringify(body));
|
||||||
callback(true, body);
|
return callback(true, body);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user