From fd5d3764200719400b2c59802fab676ced287af1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 11 Aug 2016 09:55:37 -0300 Subject: [PATCH] test --- iguana/iguana_realtime.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iguana/iguana_realtime.c b/iguana/iguana_realtime.c index 280034a8c..19e84fe99 100755 --- a/iguana/iguana_realtime.c +++ b/iguana/iguana_realtime.c @@ -210,6 +210,11 @@ int32_t iguana_realtime_update(struct supernet_info *myinfo,struct iguana_info * struct iguana_block *block=0; struct iguana_blockRO *B; struct iguana_ramchain *dest=0,blockR; if ( coin->peers == 0 && coin->virtualchain == 0 ) return(0); + if ( coin->RTheight < coin->blocks.hwmchain.height ) + { + printf("inversion RT %d < %d\n",coin->RTheight,coin->blocks.hwmchain.height); + coin->RTheight = 0; + } offset = (strcmp("BTC",coin->symbol) != 0); if ( coin->current != 0 && (coin->blocks.hwmchain.height % coin->chain->bundlesize) == coin->chain->bundlesize-1 && coin->blocks.hwmchain.height/coin->chain->bundlesize == coin->longestchain/coin->chain->bundlesize ) {