From ff92d28422589dc9de3c7f81fa191d604782c854 Mon Sep 17 00:00:00 2001 From: jonnybravo0311 Date: Sun, 11 Dec 2016 15:19:49 -0500 Subject: [PATCH] segwit support Change call to GBT to include segwit rules --- lib/pool.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pool.js b/lib/pool.js index e2482af..2b6ad4d 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -119,7 +119,7 @@ var pool = module.exports = function pool(options, authorizeFn){ function OnBlockchainSynced(syncedCallback){ var checkSynced = function(displayNotSynced){ - _this.daemon.cmd('getblocktemplate', [], function(results){ + _this.daemon.cmd('getblocktemplate', [{"capabilities": [ "coinbasetxn", "workid", "coinbase/append" ], "rules": [ "segwit" ]}], function(results){ var synced = results.every(function(r){ return !r.error || r.error.code !== -10; }); @@ -566,7 +566,7 @@ var pool = module.exports = function pool(options, authorizeFn){ function GetBlockTemplate(callback){ _this.daemon.cmd('getblocktemplate', - [{"capabilities": [ "coinbasetxn", "workid", "coinbase/append" ]}], + [{"capabilities": [ "coinbasetxn", "workid", "coinbase/append" ], "rules": [ "segwit" ]}], function(result){ if (result.error){ emitErrorLog('getblocktemplate call failed for daemon instance ' +