This commit is contained in:
jl777
2016-12-13 10:01:41 +02:00
parent 34ae5f7e87
commit f1e6a93738

View File

@@ -344,9 +344,11 @@ int32_t komodo_pending_withdraws(char *opretstr)
return(0);
HASH_ITER(hh,PAX,pax,tmp)
{
if ( pax->type == 'W' && pax->marked == 0 && strcmp((char *)"KMD",pax->symbol) == 0 && pax->approved == 0 && pax->validated != 0 )
if ( pax->type == 'W' )
{
printf("pax %s marked.%u approved.%u validated.%llu\n",pax->symbol,pax->marked,pax->approved,(long long)pax->validated);
if ( pax->marked == 0 && strcmp((char *)"KMD",pax->symbol) == 0 && pax->approved == 0 && pax->validated != 0 )
{
// add 'A' opreturn entry
if ( len == 0 )
opretbuf[len++] = 'A';
@@ -354,6 +356,7 @@ int32_t komodo_pending_withdraws(char *opretstr)
//printf("%s.(marked.%u approved.%d) %p\n",pax->source,pax->marked,pax->approved,pax);
}
}
}
if ( len > 0 )
init_hexbytes_noT(opretstr,opretbuf,len);
else opretstr[0] = 0;