Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
f4054ca527
  1. 1
      iguana/iguana777.h
  2. 9
      iguana/main.c

1
iguana/iguana777.h

@ -793,6 +793,7 @@ int32_t iguana_bloomfind(struct iguana_info *coin,struct iguana_bloom16 *bloom,i
struct iguana_bloominds iguana_bloomset(struct iguana_info *coin,struct iguana_bloom16 *bloom,int32_t incr,struct iguana_bloominds bit);
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);
extern queue_t bundlesQ,validateQ,emitQ,balancesQ;
extern char GLOBALTMPDIR[];

9
iguana/main.c

@ -358,12 +358,15 @@ void mainloop(struct supernet_info *myinfo)
{
flag++;
if ( ptr->bp != 0 && ptr->coin != 0 )
{
iguana_balancecalc(ptr->coin,ptr->bp);
iguana_coinflush(ptr->coin);
}
myfree(ptr,ptr->allocsize);
}
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 )
// iguana_coinflush(coin);
if ( flag == 0 )
{
usleep(10000);

Loading…
Cancel
Save