From f15c44b661416b298ffb6dd3d684e1972782afd7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 27 Jun 2016 08:56:39 -0300 Subject: [PATCH] test --- iguana/iguana_realtime.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/iguana/iguana_realtime.c b/iguana/iguana_realtime.c index c020075c1..b46aa189e 100755 --- a/iguana/iguana_realtime.c +++ b/iguana/iguana_realtime.c @@ -221,7 +221,7 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info * } if ( coin->spendvectorsaved <= 1 ) { - //printf("spendvectorsaved not yet\n"); +printf("spendvectorsaved not yet\n"); usleep(100000); return(0); } @@ -283,10 +283,9 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info * bp->lastRT = (uint32_t)time(NULL); iguana_RTramchainalloc("RTbundle",coin,bp); bp->isRT = 1; - while ( (rdata= coin->RTramchain.H.data) != 0 && coin->RTheight <= coin->blocks.hwmchain.height-offset ) + printf("RTheight.%d hwm.%d\n",coin->RTheight,coin->blocks.hwmchain.height); + while ( (rdata= coin->RTramchain.H.data) != 0 && coin->RTheight <= coin->blocks.hwmchain.height-offset && coin->RTdatabad == 0 ) { - if ( coin->RTdatabad != 0 ) - break; dest = &coin->RTramchain; B = RAMCHAIN_PTR(rdata,Boffset); bundlei = (coin->RTheight % coin->chain->bundlesize);