Check coinbase transaction for floData and include it in the size.
This commit is contained in:
parent
16005103e0
commit
5131accc21
@ -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 {
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user