From f4276ad835433cfc2819d60b1c9e42c9dcd5cc89 Mon Sep 17 00:00:00 2001 From: Ralph Date: Wed, 28 Apr 2021 14:32:38 -0400 Subject: [PATCH] Add hard-coded segwit support to lbrycrdd calls --- web/yaamp/core/rpc/easybitcoin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/yaamp/core/rpc/easybitcoin.php b/web/yaamp/core/rpc/easybitcoin.php index ad3401a..b9ea350 100644 --- a/web/yaamp/core/rpc/easybitcoin.php +++ b/web/yaamp/core/rpc/easybitcoin.php @@ -144,7 +144,7 @@ class Bitcoin { if($method == 'getblocktemplate') { $param = isset($params[0]) ? $params[0] : ''; - $request = "{\"method\":\"$method\",\"params\":[$param],\"id\":$this->id}"; + $request = "{\"method\":\"$method\",\"params\":[{\"rules\": [\"segwit\"]}],\"id\":$this->id}"; // debuglog($request); }