Skip to content

Commit 03e9f3e

Browse files
committed
change submitblock
1 parent dd73fb5 commit 03e9f3e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpu-miner.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,13 +753,13 @@ static bool submit_upstream_work(CURL *curl, struct work *work)
753753
json_decref(val);
754754
req = malloc(128 + 2*80 + strlen(work->txs) + strlen(params));
755755
sprintf(req,
756-
"{\"method\": \"submitblock\", \"params\": [\"%s%s\", %s], \"id\":1}\r\n",
756+
"{\"jsonrpc\": \"2.0\",\"method\": \"submitblock\", \"params\": [\"%s%s\", %s], \"id\":1}\r\n",
757757
data_str, work->txs, params);
758758
free(params);
759759
} else {
760760
req = malloc(128 + 2*80 + strlen(work->txs));
761761
sprintf(req,
762-
"{\"method\": \"submitblock\", \"params\": [\"%s%s\"], \"id\":1}\r\n",
762+
"{\"jsonrpc\": \"2.0\",\"method\": \"submitblock\", \"params\": [\"%s%s\"], \"id\":1}\r\n",
763763
data_str, work->txs);
764764
}
765765
val = json_rpc_call(curl, rpc_url, rpc_userpass, req, NULL, 0);

0 commit comments

Comments
 (0)