diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index a4c76b5de..866d07261 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -2387,6 +2387,8 @@ void iguana_RTspendvectors(struct iguana_info *coin,struct iguana_bundle *bp) bp->converted = (uint32_t)time(NULL); if ( iguana_balancegen(coin,1,bp,coin->RTstarti,coin->RTheight > 0 ? coin->RTheight-1 : bp->n-1,orignumemit) < 0 ) coin->RTdatabad = 1; + else if ( coin->RTgenesis == 0 ) + printf(">>>>>> IGUANA BTC INITIALIZATION COMPLETE <<<<<<\n"); //printf("iguana_balancegen [%d] (%d to %d)\n",bp->hdrsi,coin->RTstarti,(coin->RTheight-1)%bp->n); coin->RTstarti = (coin->RTheight % bp->n); } @@ -2527,8 +2529,8 @@ int32_t iguana_realtime_update(struct iguana_info *coin) if ( (n= iguana_walkchain(coin,1)) == coin->RTheight-1 ) { //printf("RTgenesis verified\n"); - coin->RTgenesis = (uint32_t)time(NULL); iguana_RTspendvectors(coin,bp); + coin->RTgenesis = (uint32_t)time(NULL); } else coin->RTdatabad = 1; } if ( dest != 0 && flag != 0 )