From f63a3ec43832ff32ec9785e12a5463c4bc1d6a45 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 17 Apr 2016 19:28:47 -0500 Subject: [PATCH] test --- iguana/iguana_unspents.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 37e8b3003..9a330184b 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -1845,7 +1845,19 @@ int32_t iguana_realtime_update(struct iguana_info *coin) { iguana_RTramchainfree(coin); iguana_RTramchainalloc("RTbundle",coin,bp); + for (i=0; ihdrsi; i++) + { + if ( (bp= coin->bundles[i]) != 0 && bp->utxofinish == 0 ) + { + if ( iguana_spendvectors(coin,bp,&bp->ramchain,0,bp->n,0) < 0 ) + { + printf("error generating spendvectors.[%d], exiting. just restart iguana\n",i); + exit(-1); + } + } + } } + bp = coin->current; if ( bp != 0 && bp->hdrsi == coin->longestchain/coin->chain->bundlesize && bp->hdrsi == coin->balanceswritten && coin->RTheight >= bp->bundleheight && coin->RTheight < bp->bundleheight+bp->n && ((coin->RTheight <= coin->blocks.hwmchain.height && time(NULL) > bp->lastRT) || time(NULL) > bp->lastRT+10) ) { if ( (block= bp->blocks[0]) == 0 || block->txvalid == 0 || block->mainchain == 0 )