Check coinbase transaction for floData and include it in the size.

This commit is contained in:
Sky Young 2018-10-20 13:55:50 -06:00
parent 16005103e0
commit 5131accc21
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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",