|
|
@ -659,7 +659,7 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int |
|
|
|
if ( (height= LP_getheight(coin)) > coin->longestchain ) |
|
|
|
{ |
|
|
|
coin->longestchain = height; |
|
|
|
if ( coin->firstrefht != 0 ) |
|
|
|
if ( 0 && coin->firstrefht != 0 ) |
|
|
|
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);
|
|
|
|
coin->lastgetinfo = (uint32_t)time(NULL); |
|
|
@ -711,7 +711,7 @@ void LP_initpeers(int32_t pubsock,struct LP_peerinfo *mypeer,char *myipaddr,uint |
|
|
|
int32_t i,j; uint32_t r; |
|
|
|
if ( IAMLP != 0 ) |
|
|
|
{ |
|
|
|
LP_mypeer = mypeer = LP_addpeer(mypeer,pubsock,myipaddr,myport,0,0,0,G.LP_sessionid); |
|
|
|
LP_mypeer = mypeer = LP_addpeer(mypeer,pubsock,myipaddr,myport,0,0,1,G.LP_sessionid); |
|
|
|
if ( myipaddr == 0 || mypeer == 0 ) |
|
|
|
{ |
|
|
|
printf("couldnt get myipaddr or null mypeer.%p\n",mypeer); |
|
|
|