Browse Source

Test

etomic
jl777 7 years ago
parent
commit
01961694f6
  1. 6
      iguana/exchanges/LP_commands.c

6
iguana/exchanges/LP_commands.c

@ -258,15 +258,13 @@ instantdex_claim()\n\
return(jprint(LP_coinsjson(0),1)); return(jprint(LP_coinsjson(0),1));
else if ( strcmp(method,"notarizations") == 0 ) else if ( strcmp(method,"notarizations") == 0 )
{ {
int32_t height,bestheight;
if ( (ptr= LP_coinsearch(coin)) != 0 ) if ( (ptr= LP_coinsearch(coin)) != 0 )
{ {
height = LP_notarization_latest(&bestheight,ptr);
retjson = cJSON_CreateObject(); retjson = cJSON_CreateObject();
jaddstr(retjson,"result","success"); jaddstr(retjson,"result","success");
jaddstr(retjson,"coin",coin); jaddstr(retjson,"coin",coin);
jaddnum(retjson,"lastnotarization",height); jaddnum(retjson,"lastnotarization",ptr->notarized);
jaddnum(retjson,"bestheight",bestheight); jaddnum(retjson,"bestheight",ptr->height);
return(jprint(retjson,1)); return(jprint(retjson,1));
} else return(clonestr("{\"error\":\"cant find coin\"}")); } else return(clonestr("{\"error\":\"cant find coin\"}"));
} }

Loading…
Cancel
Save