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){
|
||||
|
||||
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 ' +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user