diff --git a/iguana/iguana_blocks.c b/iguana/iguana_blocks.c index 7e60d9ed6..4e0ffbfe5 100755 --- a/iguana/iguana_blocks.c +++ b/iguana/iguana_blocks.c @@ -677,7 +677,7 @@ struct iguana_block *_iguana_chainlink(struct supernet_info *myinfo,struct iguan process_iguanablock(block->serdata,CHAINPARMS); }*/ iguana_blockzcopy(coin->chain->zcash,(void *)&coin->blocks.hwmchain,block); - iguana_RTnewblock(myinfo,coin,block); + //iguana_RTnewblock(myinfo,coin,block); return(block); } } diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 8d22cb350..bcc98e983 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1855,6 +1855,12 @@ int32_t iguana_processrecv(struct supernet_info *myinfo,struct iguana_info *coin coin->balanceflush = 0; //iguana_utxoaddr_gen(myinfo,coin,(coin->balanceswritten - 1) * coin->chain->bundlesize); } + if ( coin->RTheight > 0 && coin->RTheight < coin->blocks.hwmchain.height ) + { + struct iguana_block *block; + if ( (block= iguana_blockfind("utxogen",coin,iguana_blockhash(coin,coin->RTheight))) != 0 ) + iguana_RTnewblock(myinfo,coin,block); + } flag += iguana_processrecvQ(myinfo,coin,&newhwm); flag += iguana_reqblocks(myinfo,coin); if ( time(NULL) > coin->laststats+30 ) diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 0b7592b43..eab5128af 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -1260,8 +1260,6 @@ uint64_t iguana_RTstart(struct supernet_info *myinfo,struct iguana_info *coin,in coin->firstRTheight = coin->RTheight = height; iguana_RTreset(coin); iguana_RTpurge(coin,coin->firstRTheight); - if ( (block= iguana_blockfind("utxogen",coin,coin->blocks.hwmchain.RO.hash2)) != 0 ) - iguana_RTnewblock(myinfo,coin,block); basilisk_unspents_update(myinfo,coin); return(coin->histbalance); }