Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
de0473a84a
  1. 2
      iguana/coins/genbtcd
  2. 6
      iguana/iguana777.c
  3. 2
      iguana/iguana_recv.c
  4. 4
      includes/iguana_defines.h

2
iguana/coins/genbtcd

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

6
iguana/iguana777.c

@ -624,16 +624,16 @@ int32_t iguana_coin_mainiter(struct supernet_info *myinfo,struct iguana_info *co
else else
{ {
for (j=0; j<coin->bundlescount; j++) for (j=0; j<coin->bundlescount; j++)
if ( (bp= coin->bundles[j]) != 0 && bp->ramchain.H.data == 0 && bp->startutxo == 0 )//&& bp->queued == 0 ) if ( (bp= coin->bundles[j]) != 0 && bp->startutxo == 0 && bp->numsaved >= coin->chain->bundlesize )//&& bp->queued == 0 )
{ {
if ( iguana_bundleready(myinfo,coin,bp,0) == bp->n ) if ( 0 && iguana_bundleready(myinfo,coin,bp,0) == bp->n )
{ {
//printf("finalize.[%d]\n",bp->hdrsi); //printf("finalize.[%d]\n",bp->hdrsi);
if ( iguana_bundlefinalize(myinfo,coin,bp,mem,memB) > 0 ) if ( iguana_bundlefinalize(myinfo,coin,bp,mem,memB) > 0 )
continue; continue;
} }
//printf("bundleQ.[%d]\n",j); //printf("bundleQ.[%d]\n",j);
//iguana_bundleQ(myinfo,coin,bp,1000); iguana_bundleQ(myinfo,coin,bp,1000);
} }
//coin->spendvectorsaved = 1; //coin->spendvectorsaved = 1;
} }

2
iguana/iguana_recv.c

@ -1899,7 +1899,7 @@ int32_t iguana_reqhdrs(struct iguana_info *coin)
{ {
if ( bp == coin->current ) if ( bp == coin->current )
lag = 3; lag = 3;
else lag = 17; else lag = 7;
if ( time(NULL) > bp->issuetime+lag ) if ( time(NULL) > bp->issuetime+lag )
{ {
if ( 0 && bp == coin->current ) if ( 0 && bp == coin->current )

4
includes/iguana_defines.h

@ -44,8 +44,8 @@
#define IGUANA_HEADPERCENTAGE 0. #define IGUANA_HEADPERCENTAGE 0.
#define IGUANA_TAILPERCENTAGE 1.0 #define IGUANA_TAILPERCENTAGE 1.0
#define IGUANA_MAXPENDHDRS 1 #define IGUANA_MAXPENDHDRS 1
#define IGUANA_BTCPENDINGREQUESTS 64 #define IGUANA_BTCPENDINGREQUESTS 3
#define IGUANA_PENDINGREQUESTS 64 #define IGUANA_PENDINGREQUESTS 32
#define IGUANA_MINPENDBUNDLES 4 #define IGUANA_MINPENDBUNDLES 4
#define IGUANA_MAXPENDBUNDLES 64 #define IGUANA_MAXPENDBUNDLES 64
#define IGUANA_RPCPORT 7778 #define IGUANA_RPCPORT 7778

Loading…
Cancel
Save