diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 06ad1c33a..de76c6e21 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -901,6 +901,7 @@ void verusblocks(struct iguana_info *coin) height = -1; while ( (blockjson= LP_blockjson(&height,coin->symbol,hashstr,0)) != 0 ) { + height = juint(json,"height"); if ( (txs= jarray(&n,blockjson,"tx")) != 0 ) { txid = jbits256i(txs,0); @@ -911,6 +912,7 @@ void verusblocks(struct iguana_info *coin) memset(firstaddr,0,sizeof(firstaddr)); 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 ( (vout= jitem(vouts,0)) != 0 ) diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index 5b85247b4..3d9139bb0 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/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 ( heightp != 0 ) + if ( *heightp != 0 ) { *heightp = juint(json,"height"); if ( height >= 0 && *heightp != height )