Removed unnecessary comments or variable
This commit is contained in:
parent
d26e00fee2
commit
0ef96c8daf
6
pool.js
6
pool.js
@ -9,19 +9,16 @@ var stratum = require('./stratum.js');
|
|||||||
var jobManager = require('./jobManager.js');
|
var jobManager = require('./jobManager.js');
|
||||||
var util = require('./util.js');
|
var util = require('./util.js');
|
||||||
|
|
||||||
console.log("BOIADIO");
|
|
||||||
|
|
||||||
var pool = module.exports = function pool(coin){
|
var pool = module.exports = function pool(coin){
|
||||||
|
|
||||||
var _this = this;
|
var _this = this;
|
||||||
var publicKeyBuffer;
|
var publicKeyBuffer;
|
||||||
var boiadio = this;
|
|
||||||
this.jobManager = new jobManager({
|
this.jobManager = new jobManager({
|
||||||
algorithm: coin.options.algorithm,
|
algorithm: coin.options.algorithm,
|
||||||
address: coin.options.address
|
address: coin.options.address
|
||||||
});
|
});
|
||||||
this.jobManager.on('newBlock', function(blockTemplate){
|
this.jobManager.on('newBlock', function(blockTemplate){
|
||||||
console.log("NEWBLOCK ");
|
|
||||||
if ( typeof(_this.stratumServer ) === 'undefined') {
|
if ( typeof(_this.stratumServer ) === 'undefined') {
|
||||||
console.warn("Stratum server still not started! cannot broadcast block!");
|
console.warn("Stratum server still not started! cannot broadcast block!");
|
||||||
} else {
|
} else {
|
||||||
@ -29,7 +26,6 @@ var pool = module.exports = function pool(coin){
|
|||||||
}
|
}
|
||||||
|
|
||||||
}).on('blockFound', function(blockHex){
|
}).on('blockFound', function(blockHex){
|
||||||
console.log("BLOCKFOUND");
|
|
||||||
if (coin.options.hasSubmitMethod) {
|
if (coin.options.hasSubmitMethod) {
|
||||||
_this.daemon.cmd('submitblock',
|
_this.daemon.cmd('submitblock',
|
||||||
[blockHex],
|
[blockHex],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user