Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
d8afd8e0cd
  1. 1
      iguana/iguana777.h
  2. 5
      iguana/iguana_recv.c
  3. 8
      iguana/main.c

1
iguana/iguana777.h

@ -795,6 +795,7 @@ struct iguana_bloominds iguana_bloomset(struct iguana_info *coin,struct iguana_b
int32_t iguana_Xspendmap(struct iguana_info *coin,struct iguana_ramchain *ramchain,struct iguana_bundle *bp);
void iguana_balancesQ(struct iguana_info *coin,struct iguana_bundle *bp);
void iguana_coinflush(struct iguana_info *coin);
int32_t iguana_bundlekick(struct iguana_info *coin,struct iguana_bundle *bp,int32_t starti,int32_t max);
extern queue_t bundlesQ,validateQ,emitQ,balancesQ;
extern char GLOBALTMPDIR[];

5
iguana/iguana_recv.c

@ -554,6 +554,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int
iguana_bundleQ(coin,bp,1000);
return(0);
}
max = bp->n;
if ( bp != currentbp )
{
//printf("initial requests for hdrs.%d\n",bp->hdrsi);
@ -573,10 +574,10 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int
return(0);
}
}
iguana_bundlekick(coin,bp,starti,bp->n);
}
issued = 0;
max = bp->n;//100 + (bp->n/coin->MAXBUNDLES)*(bp->hdrsi - starti);
iguana_bundlekick(coin,bp,starti,max);
//100 + (bp->n/coin->MAXBUNDLES)*(bp->hdrsi - starti);
/*if ( coin->numsaved > coin->longestchain*.99 )
{
printf("last percent via hdrsi.%d\n",bp->hdrsi);

8
iguana/main.c

@ -324,13 +324,13 @@ void sigcontinue_func() { printf("\nSIGCONT\n"); signal(SIGCONT,sigcontinue_func
void mainloop(struct supernet_info *myinfo)
{
int32_t flag; //struct iguana_helper *ptr; //struct iguana_info *coin;
int32_t i,flag; struct iguana_info *coin; struct iguana_bundle *bp;
while ( 1 )
{
flag = 0;
//for (i=0; i<IGUANA_MAXCOINS; i++)
// if ( (coin= Coins[i]) != 0 && coin->active != 0 )
// iguana_coinflush(coin);
for (i=0; i<IGUANA_MAXCOINS; i++)
if ( (coin= Coins[i]) != 0 && coin->active != 0 && (bp= coin->current) != 0 )
iguana_bundlekick(coin,bp,bp->hdrsi,bp->n);
iguana_jsonQ();
if ( flag == 0 )
{

Loading…
Cancel
Save