diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 0895cb79f..469b684d4 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -344,9 +344,9 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int { if ( (obj= LP_getinfo(coin->symbol)) != 0 ) { - if ( (height= jint(obj,"blocks")) >= coin->longestchain ) + if ( (height= jint(obj,"blocks")) > coin->longestchain ) { - coin->longestchain = height - 1; + coin->longestchain = height; printf(">>>>>>>>>> set %s longestchain %d (ref.%d [%d, %d])\n",coin->symbol,height,coin->firstrefht,coin->firstscanht,coin->lastscanht); } else LP_mempoolscan(coin->symbol,zero); free_json(obj);