mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
stratum: DGB getaddressinfo to check master wallet
This commit is contained in:
parent
c72dd91511
commit
b5e22c5a00
1 changed files with 5 additions and 1 deletions
|
@ -114,7 +114,11 @@ bool coind_validate_address(YAAMP_COIND *coind)
|
||||||
char params[YAAMP_SMALLBUFSIZE];
|
char params[YAAMP_SMALLBUFSIZE];
|
||||||
sprintf(params, "[\"%s\"]", coind->wallet);
|
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;
|
if(!json) return false;
|
||||||
|
|
||||||
json_value *json_result = json_get_object(json, "result");
|
json_value *json_result = json_get_object(json, "result");
|
||||||
|
|
Loading…
Add table
Reference in a new issue