From f7e56db587b4ce91be43c6407db312a39bd162fd Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 14 Aug 2016 19:33:51 -0300 Subject: [PATCH] test --- iguana/iguana_realtime.c | 2 +- iguana/iguana_spendvectors.c | 2 +- iguana/iguana_volatiles.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_realtime.c b/iguana/iguana_realtime.c index 4a771efc4..b6079da13 100755 --- a/iguana/iguana_realtime.c +++ b/iguana/iguana_realtime.c @@ -381,7 +381,7 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info * } } n = 0; - if ( coin->RTdatabad == 0 && dest != 0 && flag != 0 && coin->RTheight >= coin->longestchain-offset ) + if ( coin->RTdatabad == 0 && dest != 0 && flag != 0 && coin->RTheight >= coin->blocks.hwmchain.height-offset ) { printf("ramchainiterate.[%d] ave %.2f micros, total %.2f seconds starti.%d num.%d\n",num0,(totalmillis0*1000.)/num0,totalmillis0/1000.,coin->RTstarti,coin->RTheight%bp->n); if ( (n= iguana_walkchain(coin,1)) == coin->RTheight-1+offset ) diff --git a/iguana/iguana_spendvectors.c b/iguana/iguana_spendvectors.c index 5e29a4f00..b70b19e5f 100755 --- a/iguana/iguana_spendvectors.c +++ b/iguana/iguana_spendvectors.c @@ -509,7 +509,7 @@ int32_t iguana_balancegen(struct iguana_info *coin,int32_t incremental,struct ig { utxoaddr->RTcredits += u->value; coin->RTcredits += u->value; - printf("[%d] u%u += %.8f\n",bp->hdrsi,u->pkind,dstr(u->value)); + //printf("[%d] u%u += %.8f\n",bp->hdrsi,u->pkind,dstr(u->value)); } else printf("cant find utxoaddr\n"); } } else unspentind += T[txidind].numvouts; diff --git a/iguana/iguana_volatiles.c b/iguana/iguana_volatiles.c index 27349f946..ff80637ba 100755 --- a/iguana/iguana_volatiles.c +++ b/iguana/iguana_volatiles.c @@ -83,7 +83,7 @@ int32_t iguana_utxoupdate(struct iguana_info *coin,int16_t spent_hdrsi,uint32_t { utxoaddr->RTdebits += spent_value; coin->RTdebits += spent_value; - printf("from.%d [%d] u%u -= %.8f\n",fromheight,spent_hdrsi,spent_pkind,dstr(spent_value)); + //printf("from.%d [%d] u%u -= %.8f\n",fromheight,spent_hdrsi,spent_pkind,dstr(spent_value)); } return(0); }