Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
733fe8863c
  1. 2
      iguana/iguana777.h
  2. 3
      iguana/iguana_recv.c
  3. 2
      iguana/main.c

2
iguana/iguana777.h

@ -23,7 +23,7 @@
typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t len); typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t len);
#define IGUANA_MAXSCRIPTSIZE 10001 #define IGUANA_MAXSCRIPTSIZE 10001
//#define IGUANA_SERIALIZE_SPENDVECTORGEN #define IGUANA_SERIALIZE_SPENDVECTORGEN
//#define IGUANA_SERIALIZE_BALANCEGEN //#define IGUANA_SERIALIZE_BALANCEGEN
//#define IGUANA_DISABLEPEERS //#define IGUANA_DISABLEPEERS
#define _IGUANA_MAXSTUCKTIME 77 #define _IGUANA_MAXSTUCKTIME 77

3
iguana/iguana_recv.c

@ -1217,6 +1217,8 @@ int32_t iguana_processrecvQ(struct iguana_info *coin,int32_t *newhwmp) // single
*newhwmp = 0; *newhwmp = 0;
while ( coin->active != 0 && (req= queue_dequeue(&coin->recvQ,0)) != 0 ) while ( coin->active != 0 && (req= queue_dequeue(&coin->recvQ,0)) != 0 )
{ {
if ( (flag % 100) == 50 )
iguana_reqblocks(coin);
flag++; flag++;
//fprintf(stderr,"flag.%d %s recvQ.%p type.%c n.%d\n",flag,req->addr != 0 ? req->addr->ipaddr : "0",req,req->type,req->n); //fprintf(stderr,"flag.%d %s recvQ.%p type.%c n.%d\n",flag,req->addr != 0 ? req->addr->ipaddr : "0",req,req->type,req->n);
if ( req->type == 'B' ) // one block with all txdata if ( req->type == 'B' ) // one block with all txdata
@ -1252,6 +1254,7 @@ int32_t iguana_processrecvQ(struct iguana_info *coin,int32_t *newhwmp) // single
if ( flag >= IGUANA_BUNDLELOOP ) if ( flag >= IGUANA_BUNDLELOOP )
break; break;
} }
iguana_reqblocks(coin);
return(flag); return(flag);
} }

2
iguana/main.c

@ -359,7 +359,7 @@ void mainloop(struct supernet_info *myinfo)
if ( coin->active != 0 && coin->started != 0 ) if ( coin->active != 0 && coin->started != 0 )
{ {
iguana_bundlestats(coin,str,IGUANA_DEFAULTLAG); iguana_bundlestats(coin,str,IGUANA_DEFAULTLAG);
iguana_reqblocks(coin); //iguana_reqblocks(coin);
coin->RTramchain_busy = 1; coin->RTramchain_busy = 1;
if ( iguana_realtime_update(coin) > 0 ) if ( iguana_realtime_update(coin) > 0 )
flag++; flag++;

Loading…
Cancel
Save