From 31ee7f636766fa3dc9e2ef3fa33763b02e0fc179 Mon Sep 17 00:00:00 2001 From: Sky Young Date: Sat, 20 Oct 2018 14:17:24 -0600 Subject: [PATCH] Bump up coinbase expectations now that we include flodata --- lib/mining/template.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/mining/template.js b/lib/mining/template.js index 7fe80bfb..58ed10a5 100644 --- a/lib/mining/template.js +++ b/lib/mining/template.js @@ -292,18 +292,18 @@ BlockTemplate.prototype.createCoinbase = function createCoinbase(hash) { // CB size = 126 // Sigops cost = 4 // With segwit: - // CB weight = 724 - // CB stripped size = 172 - // CB size = 208 + // CB weight = 728 + // CB stripped size = 173 + // CB size = 209 // Sigops cost = 4 if (!this.witness) { assert.strictEqual(cb.getWeight() + padding * scale, 504); assert.strictEqual(cb.getBaseSize() + padding, 126); assert.strictEqual(cb.getSize() + padding, 126); } else { - assert.strictEqual(cb.getWeight() + padding * scale, 724); - assert.strictEqual(cb.getBaseSize() + padding, 172); - assert.strictEqual(cb.getSize() + padding, 208); + assert.strictEqual(cb.getWeight() + padding * scale, 728); + assert.strictEqual(cb.getBaseSize() + padding, 173); + assert.strictEqual(cb.getSize() + padding, 209); } // Setup coinbase flags (variable size).