Skip to content

Commit

Permalink
stratum: DGB getaddressinfo to check master wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed May 25, 2018
1 parent c72dd91 commit b5e22c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stratum/coind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ bool coind_validate_address(YAAMP_COIND *coind)
char params[YAAMP_SMALLBUFSIZE];
sprintf(params, "[\"%s\"]", coind->wallet);

json_value *json = rpc_call(&coind->rpc, "validateaddress", params);
json_value *json;
if(strcmp(coind->symbol,"DGB") == 0)
json = rpc_call(&coind->rpc, "getaddressinfo", params);
else
json = rpc_call(&coind->rpc, "validateaddress", params);
if(!json) return false;

json_value *json_result = json_get_object(json, "result");
Expand Down

0 comments on commit b5e22c5

Please sign in to comment.