diff --git a/iguana/iguana777.h b/iguana/iguana777.h index c1363fe45..cc5a75310 100755 --- a/iguana/iguana777.h +++ b/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[]; diff --git a/iguana/main.c b/iguana/main.c index 3569ef5a1..19e1d7eeb 100755 --- a/iguana/main.c +++ b/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; iactive != 0 ) - iguana_coinflush(coin); + //for (i=0; iactive != 0 ) + // iguana_coinflush(coin); if ( flag == 0 ) { usleep(10000);