From f2db1a97bdf355cde48b8599c64c56d9a274266a Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 23 Nov 2016 11:25:34 -0300 Subject: [PATCH] test --- src/komodo.h | 2 +- src/komodo_gateway.h | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index 4c89f3d6c..dcb31efd5 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -100,7 +100,7 @@ int32_t komodo_parsestatefile(struct komodo_state *sp,FILE *fp,char *symbol,char if ( fread(¬arized_desttxid,1,sizeof(notarized_desttxid),fp) != sizeof(notarized_desttxid) ) errs++; //if ( 0 && sp != 0 ) - printf("%s %p %p[%d] load[%s] NOTARIZED %d %s\n",ASSETCHAINS_SYMBOL,sp,sp->NPOINTS,sp->NUM_NPOINTS,symbol,notarized_height,notarized_hash.ToString().c_str()); + printf("%s load[%s.%d] NOTARIZED %d %s\n",ASSETCHAINS_SYMBOL,symbol,sp->NUM_NPOINTS,notarized_height,notarized_hash.ToString().c_str()); //if ( matched != 0 ) global independent states -> inside *sp komodo_eventadd_notarized(sp,symbol,ht,dest,notarized_hash,notarized_desttxid,notarized_height); } diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 49adb0f0f..1096909de 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -204,7 +204,8 @@ uint64_t komodo_paxtotal() { if ( komodo_is_issuer() != 0 ) total += pax->fiatoshis; - else total += pax->komodoshis; + else if ( pax->approved != 0 ) + total += pax->komodoshis; } } } @@ -453,7 +454,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 { for (i=0; i 0 ) @@ -473,7 +474,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 } } } - printf("extra.[%d]\n",n); + printf("extra.[%d] after %.8f\n",n,dstr(komodo_paxtotal()); } else if ( tokomodo == 0 && opretbuf[0] == 'I' ) {