Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
35794b3367
  1. 4
      basilisk/basilisk.c
  2. 5
      iguana/confs/BTC_hdrs.txt
  3. 6
      iguana/iguana777.c
  4. 10
      iguana/iguana_bundles.c
  5. 6
      iguana/iguana_spendvectors.c
  6. 2
      iguana/main.c

4
basilisk/basilisk.c

@ -861,8 +861,8 @@ void basilisks_loop(void *arg)
}
portable_mutex_unlock(&myinfo->messagemutex);
if ( RELAYID >= 0 )
usleep(30000);
else usleep(100000);
usleep(100000);
else usleep(3000000);
}
}

5
iguana/confs/BTC_hdrs.txt

@ -1,4 +1,4 @@
429203
429103
0 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f 35d08fbf1b2fd7b8e87b29c8ad6682b9d2f09db56ec56bf16e08e973b6aa44b2 00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048
100 000000007bc154e0fa7ea32218a72fe2c1bb9f86cf8c9ebf9a715ed27fdb229a 472f1ec3e6647533551ef65a7f826ef345daa2e8bc27384845f377208465c8d2 00000000b69bd8e4dc60580117617a466d5c76ada85fb7b87e9baea01f9d9984
200 000000008f1a7008320c16b8402b7f11e82951f44ca2663caf6860ab2eeef320 5847096dc10d1f31efc6b881ca9710bdd4602ee41d6b61ae40d1f02e30e31c09 000000002b50d5963806b024fa09d296a3d8762713536eba9e5bdfa7596f814a
@ -4290,5 +4290,4 @@
428800 000000000000000004aa9e38401491b443f0d8de149a2bc4a0a2621880e41e88 2336ce863f68b4c382cb450a658249ecb7f318c7a7c6fbe8f965d0018deac76d 0000000000000000015d608750cf5028a0f0cff0caa5e949a9c8238fa14659e1
428900 0000000000000000014e14be9abad411da467492db56b96da2082b8c1156c889 5476dfbd48111bb5f5f40452e85ba64f30407c8e9824545a13e9ed0f77e2730f 000000000000000002d1be816c221bae177c22f25f79d607c0279cfd8e8a0ed0
429000 000000000000000002a455bcab421d44d1c85bdac8a6e196aa0c0968aa5ab5d1 bc53b741739d79cbf671c59576d25a1af8e9580f53942d6ee57c9b5cda49356e 0000000000000000049904c0026d4e4dc770681edfb80ee95acb81fd212d1c5f
429100 000000000000000001e3a59330494e24a2eff490d199c32046c16000f3738c14 0fb7c31784632d68dbf8bef40368891e0481dad438a8cb804337523ef6afef1e 000000000000000002b80d45279addfe8052222743d9541135189102a6923202
429200 00000000000000000437bd389ec1d94b936af8124e6a9f7592fee10ff6eddd94
429100 000000000000000001e3a59330494e24a2eff490d199c32046c16000f3738c14

6
iguana/iguana777.c

@ -384,7 +384,7 @@ int32_t iguana_helperA(struct supernet_info *myinfo,struct iguana_info *coin,int
printf("iguana_helperA unexpected null bp\n");
return(-1);
}
//printf("helperid.%d validate gen utxo.[%d] utxofinish.%u\n",helperid,bp->hdrsi,bp->utxofinish);
printf("helperid.%d validate gen utxo.[%d] utxofinish.%u\n",helperid,bp->hdrsi,bp->utxofinish);
if ( iguana_bundlevalidate(myinfo,coin,bp,0) == bp->n ) //
{
retval = 0;
@ -599,7 +599,7 @@ int32_t iguana_coin_mainiter(struct supernet_info *myinfo,struct iguana_info *co
n = coin->bundlescount-1;
if ( coin->blocks.hwmchain.height/coin->chain->bundlesize >= (coin->longestchain-coin->chain->bundlesize)/coin->chain->bundlesize )
{
printf("%s n.%d emitfinished.%d coin->spendvectorsaved %d\n",coin->symbol,n,iguana_emitfinished(myinfo,coin,1),coin->spendvectorsaved);
//printf("%s n.%d emitfinished.%d coin->spendvectorsaved %d\n",coin->symbol,n,iguana_emitfinished(myinfo,coin,1),coin->spendvectorsaved);
if ( iguana_emitfinished(myinfo,coin,1) >= n )
{
if ( coin->PREFETCHLAG >= 0 && coin->fastfind == 0 )
@ -617,7 +617,7 @@ int32_t iguana_coin_mainiter(struct supernet_info *myinfo,struct iguana_info *co
else
{
coin->spendvectorsaved = (uint32_t)time(NULL);
printf("already done UTXOGEN (%d %d %d) n.%d\n",iguana_utxofinished(coin),iguana_validated(coin),iguana_balancefinished(coin),n);
//printf("already done UTXOGEN (%d %d %d) n.%d\n",iguana_utxofinished(coin),iguana_validated(coin),iguana_balancefinished(coin),n);
}
}
}

10
iguana/iguana_bundles.c

@ -141,9 +141,13 @@ int32_t iguana_hash2set(struct iguana_info *coin,char *debugstr,struct iguana_bu
}
if ( bits256_nonz(*orighash2p) > 0 && memcmp(newhash2.bytes,orighash2p,sizeof(bits256)) != 0 )
{
char str2[65],str3[65];
bits256_str(str2,*orighash2p), bits256_str(str3,newhash2);
printf("WARNING iguana_hash2set overwrite avoided [%s] %s with %s [%d:%d]\n",debugstr,str2,str3,bp->hdrsi,bundlei);
static uint32_t counter;
if ( counter++ < 3 )
{
char str2[65],str3[65];
bits256_str(str2,*orighash2p), bits256_str(str3,newhash2);
printf("WARNING iguana_hash2set overwrite avoided [%s] %s with %s [%d:%d]\n",debugstr,str2,str3,bp->hdrsi,bundlei);
}
return(-1);
//*orighash2p = newhash2;
// getchar();

6
iguana/iguana_spendvectors.c

@ -776,13 +776,15 @@ void iguana_initfinal(struct supernet_info *myinfo,struct iguana_info *coin,bits
printf("i.%d bundlescount.%d\n",i,coin->bundlescount);
if ( coin->balanceswritten > 1 )
coin->balanceswritten = iguana_volatilesinit(myinfo,coin);
if ( coin->balanceswritten > 1 )
//if ( coin->balanceswritten > 1 )
{
//for (i=0; i<coin->balanceswritten; i++)
for (i=0; i<coin->bundlescount; i++)
{
if ( (bp= coin->bundles[i]) != 0 )
iguana_bundlevalidate(myinfo,coin,bp,0);
//printf("%d ",i);
iguana_validateQ(coin,coin->bundles[i]);
//iguana_validateQ(coin,coin->bundles[i]);
}
}
printf("i.%d balanceswritten.%d\n",i,coin->balanceswritten);

2
iguana/main.c

@ -1587,7 +1587,7 @@ void iguana_main(void *arg)
if ( iguana_commandline(myinfo,arg) == 0 )
{
iguana_helpinit(myinfo);
iguana_relays_init(myinfo);
//iguana_relays_init(myinfo);
basilisks_init(myinfo);
#ifdef __APPLE__
iguana_appletests(myinfo);

Loading…
Cancel
Save