|
|
@ -532,6 +532,8 @@ void *iguana_RTrawdata(struct iguana_info *coin,bits256 hash2,uint8_t *data,int3 |
|
|
|
//printf("len.%d filesize.%ld\n",len,filesize);
|
|
|
|
fclose(fp); |
|
|
|
} |
|
|
|
else if ( checkonly == 0 ) |
|
|
|
{ |
|
|
|
if ( *recvlenp > 0 ) |
|
|
|
{ |
|
|
|
if ( coin->RTheight == 0 && coin->blocks.hwmchain.height < coin->longestchain-coin->chain->bundlesize && iguana_utxofinished(coin) < coin->bundlescount-3 ) |
|
|
@ -547,9 +549,7 @@ void *iguana_RTrawdata(struct iguana_info *coin,bits256 hash2,uint8_t *data,int3 |
|
|
|
//printf("numtx.%d len.%d %s\n",*numtxp,*recvlenp,fname);
|
|
|
|
} else printf("couldnt create %s\n",fname); |
|
|
|
} |
|
|
|
else if ( checkonly == 0 ) |
|
|
|
{ |
|
|
|
if ( (ptr= OS_mapfile(fname,&filesize,0)) != 0 ) |
|
|
|
else if ( (ptr= OS_mapfile(fname,&filesize,0)) != 0 ) |
|
|
|
{ |
|
|
|
memcpy(&checklen,ptr,sizeof(checklen)); |
|
|
|
memcpy(&checknumtx,&ptr[sizeof(checklen)],sizeof(checknumtx)); |
|
|
|