Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
542613f145
  1. 2
      iguana/coins/genbtc
  2. 4
      iguana/iguana_bundles.c
  3. 2
      iguana/iguana_recv.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\":64,\"endpend\":64,\"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\":16,\"endpend\":16,\"services\":129,\"maxpeers\":512,\"RELAY\":1,\"VALIDATE\":1,\"portp2p\":8333}"

4
iguana/iguana_bundles.c

@ -1129,7 +1129,7 @@ int32_t iguana_bundleiters(struct supernet_info *myinfo,struct iguana_info *coin
else if ( bp->hdrsi == starti || (bp->hdrsi >= starti && bp->hdrsi <= starti+range) ) else if ( bp->hdrsi == starti || (bp->hdrsi >= starti && bp->hdrsi <= starti+range) )
{ {
max = bp->n; max = bp->n;
counter = iguana_bundleissuemissing(myinfo,coin,bp,1,1.); counter = iguana_bundleissuemissing(myinfo,coin,bp,1,3.);
if ( 0 && counter > 0 ) if ( 0 && counter > 0 )
printf("starti.%d range.%d now.%u spec.%-4d bundle.%-4d h.%-4d r.%-4d s.%-4d F.%d T.%d issued.%d mb.%d/%d\n",starti,range,(uint32_t)time(NULL),bp->numspec,bp->bundleheight/coin->chain->bundlesize,bp->numhashes,bp->numrecv,bp->numsaved,bp->emitfinish,timelimit,counter,coin->MAXBUNDLES,coin->bundlescount); printf("starti.%d range.%d now.%u spec.%-4d bundle.%-4d h.%-4d r.%-4d s.%-4d F.%d T.%d issued.%d mb.%d/%d\n",starti,range,(uint32_t)time(NULL),bp->numspec,bp->bundleheight/coin->chain->bundlesize,bp->numhashes,bp->numrecv,bp->numsaved,bp->emitfinish,timelimit,counter,coin->MAXBUNDLES,coin->bundlescount);
} else bp->nexttime++; } else bp->nexttime++;
@ -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+13 ) if ( now > bp->missingstime+30 )
{ {
if ( coin->current != 0 ) if ( coin->current != 0 )
{ {

2
iguana/iguana_recv.c

@ -2196,9 +2196,9 @@ int32_t iguana_processrecv(struct supernet_info *myinfo,struct iguana_info *coin
if ( time(NULL) > coin->laststats+3 ) if ( time(NULL) > coin->laststats+3 )
{ {
flag += iguana_reqhdrs(coin); flag += iguana_reqhdrs(coin);
iguana_bundlestats(myinfo,coin,str,IGUANA_DEFAULTLAG);
coin->laststats = (uint32_t)time(NULL); coin->laststats = (uint32_t)time(NULL);
} }
iguana_bundlestats(myinfo,coin,str,IGUANA_DEFAULTLAG);
//iguana_realtime_update(myinfo,coin); //iguana_realtime_update(myinfo,coin);
coin->RTramchain_busy = 0; coin->RTramchain_busy = 0;
flag += iguana_process_msgrequestQ(myinfo,coin); flag += iguana_process_msgrequestQ(myinfo,coin);

Loading…
Cancel
Save