Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
c755f71e2c
  1. 2
      iguana/coins/genbtc
  2. 4269
      iguana/confs/BTC_hdrs.txt
  3. 2
      iguana/iguana_bundles.c
  4. 2
      iguana/iguana_msg.c
  5. 2
      iguana/iguana_recv.c

2
iguana/coins/genbtc

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

4269
iguana/confs/BTC_hdrs.txt

File diff suppressed because it is too large

2
iguana/iguana_bundles.c

@ -1122,7 +1122,7 @@ int32_t iguana_bundleiters(struct supernet_info *myinfo,struct iguana_info *coin
{
max = bp->n;
counter = iguana_bundleissuemissing(coin,bp,1,3.);
if ( 0 && counter > 0 )
//if ( 0 && counter > 0 )
printf("ITER.rt%d now.%u spec.%-4d bundle.%-4d h.%-4d r.%-4d s.%-4d F.%d T.%d issued.%d mb.%d/%d\n",bp->isRT,(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++;
if ( bp->emitfinish <= 1 )

2
iguana/iguana_msg.c

@ -1152,7 +1152,7 @@ int32_t iguana_msgparser(struct iguana_info *coin,struct iguana_peer *addr,struc
}
else if ( len != recvlen && recvlen > 1 )
{
printf("%s extra byte.[%02x] command.%s len.%d recvlen.%d\n",addr->ipaddr,data[recvlen-1],H->command,len,recvlen);
//printf("%s extra byte.[%02x] command.%s len.%d recvlen.%d\n",addr->ipaddr,data[recvlen-1],H->command,len,recvlen);
//retval = -1;
}
}

2
iguana/iguana_recv.c

@ -763,7 +763,7 @@ void iguana_bundle_set(struct iguana_info *coin,struct iguana_block *block,int32
if ( bp->speculative != 0 )
bp->speculative[bundlei] = block->RO.hash2;
//char str[65]; printf("SET %s ht.%d in [%d:%d]\n",bits256_str(str,block->RO.hash2),height,hdrsi,bundlei);
} else printf("iguana_bundle_set: no bundle at [%d]\n",hdrsi);
} //else printf("iguana_bundle_set: no bundle at [%d]\n",hdrsi);
} else printf("iguana_bundle_set: mismatch ht.%d vs %d\n",block->height,height);
}

Loading…
Cancel
Save