This commit is contained in:
jl777
2016-11-23 11:25:34 -03:00
parent 1dbea87266
commit f2db1a97bd
2 changed files with 5 additions and 4 deletions

View File

@@ -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<opretlen; i++)
printf("%02x",opretbuf[i]);
printf(" opret[%c] else path tokomodo.%d ht.%d\n",opretbuf[0],tokomodo,height);
printf(" opret[%c] else path tokomodo.%d ht.%d before %.8f\n",opretbuf[0],tokomodo,height,dstr(komodo_paxtotal());
}
printf("extra 'A' opret[%d]\n",opretlen);
if ( (n= komodo_issued_opreturn(base,txids,vouts,values,kmdheights,otherheights,baseids,rmd160s,opretbuf,opretlen,1)) > 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' )
{