Browse Source

Test

etomic
jl777 7 years ago
parent
commit
78dfd8926d
  1. 2
      iguana/exchanges/LP_commands.c
  2. 2
      iguana/exchanges/LP_rpc.c

2
iguana/exchanges/LP_commands.c

@ -225,6 +225,7 @@ stop()\n\
else if ( strcmp(method,"notarizations") == 0 )
{
int32_t height;
printf("notarizations (%s)\n",coin);
if ( (ptr= LP_coinsearch(coin)) != 0 )
{
height = LP_notarization_latest(ptr);
@ -233,7 +234,6 @@ stop()\n\
jaddnum(retjson,"lastnotarization",height);
return(jprint(retjson,1));
} else return(clonestr("{\"error\":\"cant find coin\"}"));
}
else if ( strcmp(method,"autoprice") == 0 )
{

2
iguana/exchanges/LP_rpc.c

@ -1039,6 +1039,8 @@ int32_t LP_hasnotarization(struct iguana_info *coin,cJSON *blockjson)
int32_t LP_notarization_latest(struct iguana_info *coin)
{
cJSON *blockjson; bits256 blockhash; int32_t height=-1,hasnotarization;
if ( coin->isassetchain == 0 )
return(-1);
memset(blockhash.bytes,0,sizeof(blockhash));
while ( 1 )
{

Loading…
Cancel
Save