Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
cf2b231e94
  1. 2
      README.md
  2. 1
      iguana/iguana_bundles.c
  3. 2
      iguana/iguana_ramchain.c
  4. 7
      iguana/iguana_realtime.c

2
README.md

@ -24,7 +24,7 @@ komodo: this is the top secret project I cant talk about publicly yet
> #TL;DR#
>
> ```sudo apt-get update; sudo apt-get install git build-essential; git clone https://github.com/jl777/SuperNET; cd SuperNET; ./m_onetime m_unix;```
> ```sudo apt-get update; sudo apt-get install git libcurl4-openssl-dev build-essential; git clone https://github.com/jl777/SuperNET; cd SuperNET; ./m_onetime m_unix;```
>
> The above one line gets SuperNET installed, built and launched for unix.
>

1
iguana/iguana_bundles.c

@ -1546,6 +1546,7 @@ void iguana_bundlestats(struct supernet_info *myinfo,struct iguana_info *coin,ch
fprintf(logfp,"%s bQ.%d %d:%02d:%02d stuck.%d max.%d\n",str,numbQ,(int32_t)difft.x/3600,(int32_t)(difft.x/60)%60,(int32_t)difft.x%60,coin->stucktime!=0?(uint32_t)time(NULL) - coin->stucktime:0,coin->maxstuck);
fflush(logfp);
}
if ( coin->RTheight == 0 )
printf("%s bQ.%d %d:%02d:%02d stuck.%d max.%d\n",str,numbQ,(int32_t)difft.x/3600,(int32_t)(difft.x/60)%60,(int32_t)difft.x%60,coin->stucktime!=0?(uint32_t)time(NULL) - coin->stucktime:0,coin->maxstuck);
strcpy(coin->lastdispstr,str);
if ( (rand() % 100) == 0 )

2
iguana/iguana_ramchain.c

@ -1998,6 +1998,8 @@ void iguana_blockunmark(struct iguana_info *coin,struct iguana_block *block,stru
if ( bp != 0 && i >= 0 && i < bp->n )
{
bp->issued[i] = 0;
bp->blocks[i] = 0;
memset(&bp->hashes[i],0,sizeof(bp->hashes[i]));
if ( (ptr= bp->speculativecache[i]) != 0 )
{
memcpy(&recvlen,ptr,sizeof(recvlen));

7
iguana/iguana_realtime.c

@ -807,7 +807,12 @@ void iguana_RTnewblock(struct supernet_info *myinfo,struct iguana_info *coin,str
}
else
{
printf("missing RTaddblock at i.%d RTheight.%d vs %p %d\n",i,coin->RTheight,addblock,addblock!=0?addblock->height:-1);
char str[65];
if ( addblock != 0 )
bits256_str(str,addblock->RO.hash2);
else str[0] = 0;
printf("mismatched RTaddblock at i.%d RTheight.%d vs %p %d %s\n",i,coin->RTheight,addblock,addblock!=0?addblock->height:-1,str);
iguana_blockunmark(coin,addblock,bp,bundlei,0);
break;
}
}

Loading…
Cancel
Save