From b028bc480661459d39d0b23ef41dc07f8e4d4989 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 19 Mar 2017 21:00:58 +0200 Subject: [PATCH] Test --- src/komodo_gateway.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 0a8d1cc54..7cdbacc5c 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -728,17 +728,10 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above return(0); } while ( KOMODO_PASSPORT_INITDONE == 0 ) - { komodo_passport_iteration(); - //sleep(3); - } - if ( KOMODO_PASSPORT_INITDONE == 0 ) // komodo_isrealtime(&ht) == 0 || init time already in DB - return(0); - // f9510bbd58f90ea133653005a6e3087779fd838317518ba63cce2b0fc381dff6 1337 - // 7b6e26d9ffbb7cc1b71185c38906b71632324d1c9df3a2596d09e1353a714c27 1338 if ( baseid == USD ) { - if ( baseid == USD && (height <= 2000 || height == 3282 || height == 3328 || height == 3468) ) + if ( baseid == USD && height <= 2000 )// || height == 3282 || height == 3328 || height == 3468) ) return(0); } } @@ -1225,7 +1218,7 @@ void komodo_passport_iteration() fseek(fp,0,SEEK_END); if ( ftell(fp) > lastpos[baseid] ) { - if ( strcmp(symbol,"KMD") != 0 ) + if ( ASSETCHAINS_SYMBOL[0] != 0 ) printf("%s passport refid.%d %s fname.(%s) base.%s %ld %ld\n",ASSETCHAINS_SYMBOL,refid,symbol,fname,base,ftell(fp),lastpos[baseid]); fseek(fp,lastpos[baseid],SEEK_SET); while ( komodo_parsestatefile(sp,fp,symbol,dest) >= 0 && n < 1000 )