Update pool.js

This commit is contained in:
Interchained
2021-01-04 13:53:47 -05:00
committed by GitHub
parent f8968c6c44
commit 1c7d1ed34f

View File

@@ -282,7 +282,7 @@ BlockTemplate.prototype = {
nextBlob: function (index) { nextBlob: function (index) {
this.buffer.writeUInt32BE(++this.extraNonce, this.reserveOffset); this.buffer.writeUInt32BE(++this.extraNonce, this.reserveOffset);
if (mergedMining && this.childBlockTemplate) { if (mergedMining && this.childBlockTemplate) {
return utils.cnUtil.convert_blob(this.buffer, cnBlobType, this.childBlockTemplate.buffer).toString('hex') return utils.cnUtil.convert_blob(this.buffer, cnBlobType, this.childBlockTemplate.buffer).toString('hex');
} }
return utils.cnUtil.convert_blob(this.buffer, cnBlobType).toString('hex'); return utils.cnUtil.convert_blob(this.buffer, cnBlobType).toString('hex');
}, },