From 2b2467a27b9a06fe4f1117163c02e39b1d1a5625 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 14 Aug 2016 17:49:33 -0300 Subject: [PATCH] test --- iguana/iguana_realtime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_realtime.c b/iguana/iguana_realtime.c index d3c8217d2..6b53182ce 100755 --- a/iguana/iguana_realtime.c +++ b/iguana/iguana_realtime.c @@ -23,7 +23,7 @@ void iguana_RTramchainfree(struct iguana_info *coin,struct iguana_bundle *bp) { printf("free RTramchain\n"); iguana_utxoupdate(coin,-1,0,0,0,0,-1,0); // free hashtables - coin->RTheight = coin->balanceswritten * coin->chain->bundlesize; + coin->RTheight = (coin->bundlescount-1) * coin->chain->bundlesize; coin->RTgenesis = 0; iguana_ramchain_free(coin,&coin->RTramchain,1); if ( bp != 0 ) @@ -277,7 +277,7 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info * if ( coin->RTdatabad == 0 && bp->hdrsi == coin->longestchain/coin->chain->bundlesize && bp->hdrsi >= coin->balanceswritten-2 && ((coin->RTheight < coin->blocks.hwmchain.height-offset && time(NULL) > bp->lastRT) || time(NULL) > bp->lastRT+1) ) //coin->RTheight >= bp->bundleheight && coin->RTheight < bp->bundleheight+bp->n && { if ( coin->RTheight == 0 ) - coin->RTheight = (coin->bundlescount - 2) * coin->chain->bundlesize; + coin->RTheight = (coin->bundlescount - 1) * coin->chain->bundlesize; if ( (block= bp->blocks[0]) == 0 || block->txvalid == 0 || block->mainchain == 0 ) { if ( block != 0 )