Browse Source

Test

pass-iguana-arg
jl777 7 years ago
parent
commit
c0dcad629f
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_rpc.c

2
iguana/exchanges/LP_nativeDEX.c

@ -901,6 +901,7 @@ void verusblocks(struct iguana_info *coin)
height = -1; height = -1;
while ( (blockjson= LP_blockjson(&height,coin->symbol,hashstr,0)) != 0 ) while ( (blockjson= LP_blockjson(&height,coin->symbol,hashstr,0)) != 0 )
{ {
height = juint(json,"height");
if ( (txs= jarray(&n,blockjson,"tx")) != 0 ) if ( (txs= jarray(&n,blockjson,"tx")) != 0 )
{ {
txid = jbits256i(txs,0); txid = jbits256i(txs,0);
@ -911,6 +912,7 @@ void verusblocks(struct iguana_info *coin)
memset(firstaddr,0,sizeof(firstaddr)); memset(firstaddr,0,sizeof(firstaddr));
if ( (txobj= LP_gettx("verus",coin->symbol,txid,0)) != 0 ) if ( (txobj= LP_gettx("verus",coin->symbol,txid,0)) != 0 )
{ {
printf("TX.(%s)\n",jprint(txobj,0));
if ( (vouts= jarray(&m,txobj,"vout")) != 0 ) if ( (vouts= jarray(&m,txobj,"vout")) != 0 )
{ {
if ( (vout= jitem(vouts,0)) != 0 ) if ( (vout= jitem(vouts,0)) != 0 )

2
iguana/exchanges/LP_rpc.c

@ -1045,7 +1045,7 @@ cJSON *LP_blockjson(int32_t *heightp,char *symbol,char *blockhashstr,int32_t hei
{ {
if ( (json= LP_getblockhashstr(symbol,blockhashstr)) != 0 ) if ( (json= LP_getblockhashstr(symbol,blockhashstr)) != 0 )
{ {
if ( heightp != 0 ) if ( *heightp != 0 )
{ {
*heightp = juint(json,"height"); *heightp = juint(json,"height");
if ( height >= 0 && *heightp != height ) if ( height >= 0 && *heightp != height )

Loading…
Cancel
Save