From e305194370792e9153c4ffe6e909a778fad7b77d Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 19 Mar 2017 16:54:50 +0200 Subject: [PATCH] Test --- src/komodo_gateway.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 14a6d0620..f06763c0a 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -709,6 +709,8 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above if ( height >= 235300 ) return(-1); strcpy(symbol,(char *)"KMD"); + if ( komodo_isrealtime(&ht) == 0 || KOMODO_PASSPORT_INITDONE == 0 ) // init time already in DB + return(0); } else { @@ -723,15 +725,18 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above } return(0); } + while ( KOMODO_PASSPORT_INITDONE == 0 ) + { + fprintf(stderr,"."); + sleep(3); + } + if ( KOMODO_PASSPORT_INITDONE == 0 ) // komodo_isrealtime(&ht) == 0 || init time already in DB + return(0); } - if ( komodo_isrealtime(&ht) == 0 || KOMODO_PASSPORT_INITDONE == 0 ) // init time already in DB - return(0); if ( script[offset] == opcode && opretlen < block.vtx[0].vout[n-1].scriptPubKey.size() ) { - printf("inside if\n"); if ( (num= komodo_issued_opreturn(base,txids,vouts,values,srcvalues,kmdheights,otherheights,baseids,rmd160s,&script[offset],opretlen,opcode == 'X')) > 0 ) { - printf("num.%d\n",num); for (i=1; iRTmask & (1LL << baseids[i-1])) == 0 )