Skip to content

Commit

Permalink
RPC: Add "Difficulty Accepted" to "coin" command
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Oct 29, 2014
1 parent 7396fe0 commit b8701e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.RPC
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ API V3.3

Modified API command:
'addpool' - accept an additional argument to indicate mining goal by name
'coin' - return multiple elements, when there are multiple mining goals defined
'coin' - return multiple elements, when there are multiple mining goals
defined; add 'Difficulty Accepted'
'pools' - add 'Mining Goal'

---------
Expand Down
2 changes: 2 additions & 0 deletions api.c
Original file line number Diff line number Diff line change
Expand Up @@ -3106,6 +3106,8 @@ static void minecoin(struct io_data *io_data, __maybe_unused SOCKETTYPE c, __may
root = api_add_bool(root, "LP", &goal->have_longpoll, false);
root = api_add_diff(root, "Network Difficulty", &goal->current_diff, true);

root = api_add_diff(root, "Difficulty Accepted", &goal->diff_accepted, false);

root = print_data(root, buf, isjson, precom);
io_add(io_data, buf);
if (isjson)
Expand Down

0 comments on commit b8701e8

Please sign in to comment.