test
This commit is contained in:
@@ -445,7 +445,6 @@ int32_t komodo_gateway_deposits(CMutableTransaction *txNew,char *base,int32_t to
|
|||||||
} else opcode = 'X';
|
} else opcode = 'X';
|
||||||
HASH_ITER(hh,PAX,pax,tmp)
|
HASH_ITER(hh,PAX,pax,tmp)
|
||||||
{
|
{
|
||||||
//printf("pax.%s marked.%d %.8f -> %.8f\n",pax->symbol,pax->marked,dstr(pax->komodoshis),dstr(pax->fiatoshis));
|
|
||||||
if ( strcmp(symbol,"KMD") == 0 && pax->approved == 0 )
|
if ( strcmp(symbol,"KMD") == 0 && pax->approved == 0 )
|
||||||
continue;
|
continue;
|
||||||
//else if ( strcmp(symbol,"KMD") != 0 )
|
//else if ( strcmp(symbol,"KMD") != 0 )
|
||||||
@@ -462,6 +461,7 @@ int32_t komodo_gateway_deposits(CMutableTransaction *txNew,char *base,int32_t to
|
|||||||
printf("miner.[%s]: skip %s %.8f when avail %.8f\n",ASSETCHAINS_SYMBOL,symbol,dstr(pax->fiatoshis),dstr(available));
|
printf("miner.[%s]: skip %s %.8f when avail %.8f\n",ASSETCHAINS_SYMBOL,symbol,dstr(pax->fiatoshis),dstr(available));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
printf("pax.%s marked.%d %.8f -> %.8f ready.%d validated.%d\n",pax->symbol,pax->marked,dstr(pax->komodoshis),dstr(pax->fiatoshis),pax->ready!=0,pax->validated!=0);
|
||||||
if ( pax->marked != 0 || (pax->type != 'D' && pax->type != 'A') || pax->ready == 0 )
|
if ( pax->marked != 0 || (pax->type != 'D' && pax->type != 'A') || pax->ready == 0 )
|
||||||
continue;
|
continue;
|
||||||
if ( strcmp(pax->symbol,symbol) != 0 || pax->validated == 0 )
|
if ( strcmp(pax->symbol,symbol) != 0 || pax->validated == 0 )
|
||||||
@@ -493,7 +493,7 @@ int32_t komodo_gateway_deposits(CMutableTransaction *txNew,char *base,int32_t to
|
|||||||
{
|
{
|
||||||
len += komodo_rwapproval(1,&data[len],pax);
|
len += komodo_rwapproval(1,&data[len],pax);
|
||||||
PENDING_KOMODO_TX += pax->komodoshis;
|
PENDING_KOMODO_TX += pax->komodoshis;
|
||||||
//printf(" vout.%u DEPOSIT %.8f <- pax.%s pending %.8f | ",pax->vout,(double)txNew->vout[numvouts].nValue/COIN,symbol,dstr(PENDING_KOMODO_TX));
|
printf(" vout.%u DEPOSIT %.8f <- pax.%s pending %.8f | ",pax->vout,(double)txNew->vout[numvouts].nValue/COIN,symbol,dstr(PENDING_KOMODO_TX));
|
||||||
}
|
}
|
||||||
if ( numvouts++ >= 64 )
|
if ( numvouts++ >= 64 )
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user