Browse Source

Test

pull/4/head
jl777 7 years ago
parent
commit
6bbbb67a5b
  1. 10
      src/komodo_gateway.h

10
src/komodo_gateway.h

@ -916,15 +916,19 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above
{
for (i=1; i<n-1; i++)
{
if ( (sp= komodo_stateptrget(CURRENCIES[baseids[i-1]])) != 0 )
if ( ASSETCHAINS_SYMBOL[0] != 0 && (sp= komodo_stateptrget(CURRENCIES[baseids[i-1]])) != 0 )
{
while ((sp->RTmask & (1LL << baseids[i-1])) == 0 )
int32_t rtflag = 0;
while ( (sp->RTmask & (1LL << baseids[i-1])) == 0 )
{
printf("[%s] skip checkdeposit.%s not RT %llx\n",ASSETCHAINS_SYMBOL,CURRENCIES[baseids[i-1]],(long long)sp->RTmask);
sleep(10);
sleep(60);
rtflag = 1;
//matched++;
//continue;
}
if ( rtflag != 0 )
printf("[%s] %s reached RT\n",ASSETCHAINS_SYMBOL,CURRENCIES[baseids[i-1]]);
}
if ( (pax= komodo_paxfinds(txids[i-1],vouts[i-1])) != 0 ) // finds... make sure right one
{

Loading…
Cancel
Save