From 5131accc217e4a4a3921e59511d8b05087685cf6 Mon Sep 17 00:00:00 2001 From: Sky Young Date: Sat, 20 Oct 2018 13:55:50 -0600 Subject: [PATCH] Check coinbase transaction for floData and include it in the size. --- lib/mining/template.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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",