From 7f6ddefd124571f7ca2d95fcad3ff48f00785f86 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 20 Mar 2017 21:25:19 +0200 Subject: [PATCH] Test --- src/bitcoind.cpp | 4 +-- src/komodo_gateway.h | 82 ++++++++++++++++++++++++-------------------- 2 files changed, 46 insertions(+), 40 deletions(-) diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 00ca0c3a4..bb98da3d6 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -44,9 +44,9 @@ void WaitForShutdown(boost::thread_group* threadGroup) //fprintf(stderr,"call passport iteration\n"); if ( ASSETCHAINS_SYMBOL[0] == 0 ) { - MilliSleep(10000); komodo_passport_iteration(); - } + MilliSleep(10000); + } else MilliSleep(1000); fShutdown = ShutdownRequested(); } if (threadGroup) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 81eaa2338..dd74edf2c 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -653,17 +653,20 @@ int32_t komodo_check_deposit(int32_t height,const CBlock& block) // verify above memset(kmdheights,0,sizeof(kmdheights)); memset(otherheights,0,sizeof(otherheights)); txn_count = block.vtx.size(); - for (i=0; i=0; baseid--)