diff --git a/lib/mining/template.js b/lib/mining/template.js index c96d7492..7fe80bfb 100644 --- a/lib/mining/template.js +++ b/lib/mining/template.js @@ -337,9 +337,9 @@ BlockTemplate.prototype.refresh = function refresh() { size -= 4 + 4 + 4; // -(nonce1 + nonce2 + sequence) // Add to the size for floData :) - let bufferLength = Buffer.from(this.strFloData).length; + let bufferLength = Buffer.from(cb.strFloData).length; - if (this.strFloData.length > 0){ + if (cb.strFloData.length > 0){ size += encoding.sizeVarint(bufferLength); size += bufferLength } else { diff --git a/package.json b/package.json index 49c26e3d..3b9c5d5e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fcoin", - "version": "1.0.0-beta.31", + "version": "1.0.0-beta.32", "description": "Flo bike-shed", "license": "MIT", "repository": "git://github.com/oipwg/fcoin.git",