Browse Source

test

release/v0.1
jl777 8 years ago
committed by Christopher Valerio
parent
commit
9a40201e61
  1. 2
      iguana/coins/genbtc
  2. 8
      iguana/iguana_bundles.c

2
iguana/coins/genbtc

@ -1 +1 @@
curl --url "http://127.0.0.1:7778" --data "{\"prefetchlag\":-1,\"poll\":1,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"newcoin\":\"BTC\",\"startpend\":16,\"endpend\":16,\"services\":129,\"maxpeers\":512,\"RELAY\":1,\"VALIDATE\":1,\"portp2p\":8333}" curl --url "http://127.0.0.1:7778" --data "{\"prefetchlag\":-1,\"poll\":1,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"newcoin\":\"BTC\",\"startpend\":64,\"endpend\":64,\"services\":129,\"maxpeers\":512,\"RELAY\":1,\"VALIDATE\":1,\"portp2p\":8333}"

8
iguana/iguana_bundles.c

@ -879,9 +879,9 @@ int32_t iguana_bundlehdr(struct supernet_info *myinfo,struct iguana_info *coin,s
if ( bp->numhashes < bp->n && bp->numcached < bp->n ) if ( bp->numhashes < bp->n && bp->numcached < bp->n )
{ {
//printf("issue current hdr.[%d]\n",bp->hdrsi); //printf("issue current hdr.[%d]\n",bp->hdrsi);
//for (i=0; i<bp->n; i++) for (i=0; i<bp->n; i++)
// if ( GETBIT(bp->haveblock,i) == 0 ) if ( GETBIT(bp->haveblock,i) == 0 )
// bp->issued[i] = 0; bp->issued[i] = 0;
queue_enqueue("hdrsQ",&coin->hdrsQ,queueitem(bits256_str(str,bp->hashes[0])),1); queue_enqueue("hdrsQ",&coin->hdrsQ,queueitem(bits256_str(str,bp->hashes[0])),1);
} }
iguana_bundleissuemissing(myinfo,coin,bp,3,3.); iguana_bundleissuemissing(myinfo,coin,bp,3,3.);
@ -1207,7 +1207,7 @@ void iguana_unstickhdr(struct iguana_info *coin,struct iguana_bundle *bp,int32_t
void iguana_bundlemissings(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_bundle *bp,uint32_t now) void iguana_bundlemissings(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_bundle *bp,uint32_t now)
{ {
int32_t mult = 7,n=0,priority = 1; int32_t mult = 7,n=0,priority = 1;
if ( now > bp->missingstime+30 ) if ( now > bp->missingstime+13 )
{ {
if ( coin->current != 0 ) if ( coin->current != 0 )
{ {

Loading…
Cancel
Save