diff --git a/iguana/iguana_realtime.c b/iguana/iguana_realtime.c index 06e9f016c..69f37ad24 100755 --- a/iguana/iguana_realtime.c +++ b/iguana/iguana_realtime.c @@ -527,14 +527,14 @@ void *iguana_RTrawdata(struct iguana_info *coin,bits256 hash2,uint8_t *data,int3 { memcpy(&checklen,ptr,sizeof(checklen)); memcpy(&checknumtx,&ptr[sizeof(checklen)],sizeof(checknumtx)); - if ( checklen == (int32_t)(filesize - sizeof(checklen)) && checknumtx == *numtxp ) + if ( checklen == (int32_t)(filesize - sizeof(checklen) - sizeof(checknumtx)) && checknumtx == *numtxp ) { for (i=nonz=0; isymbol,height), OS_portable_path(fname2); if ( iguana_utxoaddr_map(coin,fname2) != 0 ) { - if ( strcmp("BTCD",coin->symbol) == 0 ) + if ( strcmp("BTC",coin->symbol) != 0 ) errs = iguana_utxoaddr_validate(myinfo,coin,height); printf("nogen %s HIST BALANCE %s %.8f errs %d\n",fname2,bits256_str(str,coin->utxoaddrhash),dstr(coin->histbalance),errs); - if ( coin->histbalance > 0 ) + if ( errs == 0 && coin->histbalance > 0 ) { coin->RTheight = height; if ( (block= iguana_blockfind("utxogen",coin,coin->blocks.hwmchain.RO.hash2)) != 0 )