|
|
@ -1353,7 +1353,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 |
|
|
|
|
|
|
|
void komodo_passport_iteration() |
|
|
|
{ |
|
|
|
static long lastpos[34]; static char userpass[33][1024]; static uint32_t lasttime; |
|
|
|
static long lastpos[34]; static char userpass[33][1024]; static uint32_t lasttime,callcounter; |
|
|
|
int32_t maxseconds = 10; |
|
|
|
FILE *fp; int32_t baseid,limit,n,ht,isrealtime,expired,refid,blocks,longest; struct komodo_state *sp,*refsp; char *retstr,fname[512],*base,symbol[16],dest[16]; uint32_t buf[3],starttime; cJSON *infoobj,*result; uint64_t RTmask = 0; |
|
|
|
//printf("PASSPORT.(%s)\n",ASSETCHAINS_SYMBOL);
|
|
|
@ -1386,8 +1386,8 @@ void komodo_passport_iteration() |
|
|
|
return; |
|
|
|
}*/ |
|
|
|
starttime = (uint32_t)time(NULL); |
|
|
|
if ( lasttime == 0 ) |
|
|
|
limit = 10; |
|
|
|
if ( callcounter++ < 1 ) |
|
|
|
limit = 10000; |
|
|
|
if ( 0 && starttime == lasttime ) |
|
|
|
{ |
|
|
|
usleep(1000); |
|
|
|