From efb135d1c3e0d2f91b0fd0377b3e426619e9a748 Mon Sep 17 00:00:00 2001 From: bitspill Date: Tue, 16 Oct 2018 13:45:38 -0700 Subject: [PATCH] Include FloData in weight --- lib/mining/template.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/mining/template.js b/lib/mining/template.js index d03dd85e..03e0d631 100644 --- a/lib/mining/template.js +++ b/lib/mining/template.js @@ -287,21 +287,21 @@ BlockTemplate.prototype.createCoinbase = function createCoinbase(hash) { // Reserved size. // Without segwit: - // CB weight = 500 + // CB weight = 504 // CB stripped size = 125 // CB size = 125 // Sigops cost = 4 // With segwit: - // CB weight = 724 + // CB weight = 728 // CB stripped size = 172 // CB size = 208 // Sigops cost = 4 if (!this.witness) { - assert.strictEqual(cb.getWeight() + padding * scale, 500); + assert.strictEqual(cb.getWeight() + padding * scale, 504); assert.strictEqual(cb.getBaseSize() + padding, 125); assert.strictEqual(cb.getSize() + padding, 125); } else { - assert.strictEqual(cb.getWeight() + padding * scale, 724); + assert.strictEqual(cb.getWeight() + padding * scale, 728); assert.strictEqual(cb.getBaseSize() + padding, 172); assert.strictEqual(cb.getSize() + padding, 208); }