Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
06e6e59516
  1. 2
      iguana/iguana777.c
  2. 12
      iguana/iguana_realtime.c
  3. 1
      iguana/tests/addnode

2
iguana/iguana777.c

@ -746,7 +746,7 @@ void iguana_coinloop(void *arg)
}
if ( coin->bindsock >= 0 )
{
if ( coin->MAXPEERS > 1 && coin->peers->numranked < (coin->MAXPEERS/2) && now > coin->lastpossible )
if ( coin->MAXPEERS > 1 && coin->peers->numranked < IGUANA_MAXPEERS/2 && now > coin->lastpossible )
{
//fprintf(stderr,"check possible\n");
if ( coin->peers->numranked > 0 && (now % 60) == 0 )

12
iguana/iguana_realtime.c

@ -219,6 +219,12 @@ int32_t iguana_realtime_update(struct iguana_info *coin)
}
else printf("RT edge case.%d\n",block->height);
}
if ( coin->spendvectorsaved <= 1 )
{
//printf("spendvectorsaved not yet\n");
usleep(100000);
return(0);
}
for (i=0; i<coin->bundlescount-1; i++)
{
if ( (bp= coin->bundles[i]) != 0 && (i > 0 && bp->utxofinish == 0) && bp != coin->current )
@ -231,12 +237,6 @@ int32_t iguana_realtime_update(struct iguana_info *coin)
coin->spendvectorsaved = 1;
}
}
if ( coin->spendvectorsaved <= 1 )
{
//printf("spendvectorsaved not yet\n");
usleep(100000);
return(0);
}
bp = coin->current;
if ( bp == 0 || iguana_validated(coin) < bp->hdrsi )
{

1
iguana/tests/addnode

@ -1 +1,2 @@
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"addnode\",\"activecoin\":\"BTCD\",\"ipaddr\":\"78.47.196.146\"}"
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"iguana\",\"method\":\"addnode\",\"activecoin\":\"BTCD\",\"ipaddr\":\"5.9.102.210\"}"

Loading…
Cancel
Save