From 36bb53ce26cb9da3f3ab30d31d653bb2c6883fca Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 26 Nov 2016 15:02:05 -0300 Subject: [PATCH] test --- src/komodo_gateway.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index f51b2f5e7..0e7b455c4 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -258,7 +258,7 @@ int32_t komodo_issued_opreturn(char *base,uint256 *txids,uint16_t *vouts,int64_t uint64_t komodo_paxtotal() { - struct pax_transaction *pax,*pax2,*tmp,*tmp2; char symbol[16],dest[16]; int32_t ht; int64_t checktoshis; uint64_t seed,total = 0; struct komodo_state *basesp; + struct pax_transaction *pax,*pax2,*tmp,*tmp2; char symbol[16],dest[16]; int32_t i,ht; int64_t checktoshis; uint64_t seed,total = 0; struct komodo_state *basesp; if ( komodo_isrealtime(&ht) == 0 ) return(0); else @@ -267,9 +267,14 @@ uint64_t komodo_paxtotal() { if ( pax->didstats == 0 && pax->type == 'I' ) { - printf("pax.%p didstats.0 type.%c\n",pax,pax->type); + for (i=0; i<32; i++) + printf("%02x",((uint8_t *)&pax->txid)[i]); + printf(" pax.%p didstats.0 type.%c\n",pax,pax->type); HASH_ITER(hh,PAX,pax2,tmp2) { + for (i=0; i<32; i++) + printf("%02x",((uint8_t *)&pax2->txid)[i]); + printf(" pax2.%p\n",pax2); if ( pax != pax2 && pax->txid == pax2->txid ) { printf("matched txid\n");