Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
fe54c9cf3f
  1. 6
      iguana/iguana_realtime.c

6
iguana/iguana_realtime.c

@ -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));

Loading…
Cancel
Save