segwit support

Change call to GBT to include segwit rules
This commit is contained in:
jonnybravo0311 2016-12-11 15:19:49 -05:00 committed by Matthew Little
parent 7894c4713e
commit ff92d28422

View File

@ -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 ' +