Skip to content

Commit

Permalink
fix issue mvs-org#225: getmininginfo returns a poor JSON-formatted re…
Browse files Browse the repository at this point in the history
…sponse in v2
  • Loading branch information
xiaozongyuan committed Jan 11, 2018
1 parent 1bee586 commit 597d8da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/explorer/extensions/commands/createasset.cpp
Expand Up @@ -167,7 +167,7 @@ console_result createasset::invoke (Json::Value& jv_output,
asset_data["issuer"] = acc->get_issuer();
asset_data["address"] = acc->get_address();
asset_data["description"] = acc->get_description();
aroot["asset"] = asset_data;
aroot = asset_data;


return console_result::okay;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/explorer/extensions/commands/getmininginfo.cpp
Expand Up @@ -50,7 +50,7 @@ console_result getmininginfo::invoke (Json::Value& jv_output,
info["height"] += height;
info["rate"] += rate;
info["difficulty"] = difficulty;
aroot["mining-info"] = info;
aroot = info;

return console_result::okay;
}
Expand Down

1 comment on commit 597d8da

@jowenshaw
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For compatibility reasons with v1, the change is reverted. There exists many of the same situations of the response result. It may be re-designed later.

Please sign in to comment.