Skip to content

Commit dd73fb5

Browse files
committed
added json 2.0 on getblocktemplate requests
1 parent 5f02105 commit dd73fb5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cpu-miner.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -826,11 +826,11 @@ static const char *getwork_req =
826826
#define GBT_RULES "[\"segwit\"]"
827827

828828
static const char *gbt_req =
829-
"{\"method\": \"getblocktemplate\", \"params\": [{\"capabilities\": "
830-
GBT_CAPABILITIES ", \"rules\": " GBT_RULES "}], \"id\":0}\r\n";
829+
"{\"jsonrpc\": \"2.0\",\"method\": \"getblocktemplate\", \"params\": [{\"capabilities\": "
830+
GBT_CAPABILITIES ", \"rules\": " GBT_RULES "}], \"id\":0}\r\n";
831831
static const char *gbt_lp_req =
832-
"{\"method\": \"getblocktemplate\", \"params\": [{\"capabilities\": "
833-
GBT_CAPABILITIES ", \"rules\": " GBT_RULES ", \"longpollid\": \"%s\"}], \"id\":0}\r\n";
832+
"{\"jsonrpc\": \"2.0\",\"method\": \"getblocktemplate\", \"params\": [{\"capabilities\": "
833+
GBT_CAPABILITIES ", \"rules\": " GBT_RULES ", \"longpollid\": \"%s\"}], \"id\":0}\r\n";
834834

835835
static bool get_upstream_work(CURL *curl, struct work *work)
836836
{

0 commit comments

Comments
 (0)