mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Add return for uniform code (not a bug, comestics)
It's not a bug, just to be better look.
This commit is contained in:
+2
-2
@@ -26,7 +26,7 @@ function Coin(data){
|
||||
|
||||
this.supportsAutoExchange = false;
|
||||
|
||||
this.niceHashDiff = 200000;
|
||||
this.niceHashDiff = 400000;
|
||||
|
||||
this.getBlockHeaderByID = function(blockId, callback){
|
||||
global.support.rpcDaemon('getblockheaderbyheight', {"height": blockId}, function (body) {
|
||||
@@ -34,7 +34,7 @@ function Coin(data){
|
||||
return callback(null, body.result.block_header);
|
||||
} else {
|
||||
console.error(JSON.stringify(body));
|
||||
callback(true, body);
|
||||
return callback(true, body);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user