segwit support
Change call to GBT to include segwit rules
This commit is contained in:
parent
7894c4713e
commit
ff92d28422
@ -119,7 +119,7 @@ var pool = module.exports = function pool(options, authorizeFn){
|
|||||||
function OnBlockchainSynced(syncedCallback){
|
function OnBlockchainSynced(syncedCallback){
|
||||||
|
|
||||||
var checkSynced = function(displayNotSynced){
|
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){
|
var synced = results.every(function(r){
|
||||||
return !r.error || r.error.code !== -10;
|
return !r.error || r.error.code !== -10;
|
||||||
});
|
});
|
||||||
@ -566,7 +566,7 @@ var pool = module.exports = function pool(options, authorizeFn){
|
|||||||
|
|
||||||
function GetBlockTemplate(callback){
|
function GetBlockTemplate(callback){
|
||||||
_this.daemon.cmd('getblocktemplate',
|
_this.daemon.cmd('getblocktemplate',
|
||||||
[{"capabilities": [ "coinbasetxn", "workid", "coinbase/append" ]}],
|
[{"capabilities": [ "coinbasetxn", "workid", "coinbase/append" ], "rules": [ "segwit" ]}],
|
||||||
function(result){
|
function(result){
|
||||||
if (result.error){
|
if (result.error){
|
||||||
emitErrorLog('getblocktemplate call failed for daemon instance ' +
|
emitErrorLog('getblocktemplate call failed for daemon instance ' +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user