From 7572a37183da042eb66eba07714ac22940517bd0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 26 Nov 2016 18:27:34 -0300 Subject: [PATCH] test --- src/komodo_gateway.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index c96750fce..196b5cc51 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -261,7 +261,7 @@ uint64_t komodo_paxtotal() { //for (i=0; i<32; i++) // printf("%02x",((uint8_t *)&pax->txid)[i]); - if ( pax->type == 'A' || pax->type == 'D' ) + if ( pax->type == 'A' || pax->type == 'D' || pax->type == 'X' ) str = pax->symbol; else str = pax->source; basesp = komodo_stateptrget(str); @@ -275,8 +275,8 @@ uint64_t komodo_paxtotal() pax->didstats = 1; printf("Iset %s dstats %.8f += %.8f\n",str,dstr(basesp->issued),dstr(pax->fiatoshis)); } + printf(" stats.%d type.%c (%s) k.%d %.8f h.%d %.8f I.%.8f X.%.8f\n",pax->didstats,pax->type,str,pax->height,dstr(pax->komodoshis),pax->otherheight,dstr(pax->fiatoshis),dstr(basesp->issued),dstr(basesp->redeemed)); } - printf(" stats.%d type.%c (%s) k.%d %.8f h.%d %.8f I.%.8f X.%.8f\n",pax->didstats,pax->type,str,pax->height,dstr(pax->komodoshis),pax->otherheight,dstr(pax->fiatoshis),dstr(basesp->issued),dstr(basesp->redeemed)); } } } @@ -694,7 +694,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 if ( baseids[i] < 0 ) continue; bitcoin_address(coinaddr,60,&rmd160s[i*20],20); - printf("X i.%d of %d: %.8f -> %s\n",i,n,dstr(values[i]),coinaddr); + printf("%s X i.%d of %d: %.8f -> %s\n",CURRENCIES[baseids[i]],i,n,dstr(values[i]),coinaddr); komodo_gateway_deposit(coinaddr,0,0,0,0,txids[i],vouts[i],'X',height,0,(char *)"KMD",0); if ( komodo_paxmark(height,txids[i],vouts[i],'X',height) == 0 ) ;