diff --git a/iguana/iguana_ramchain.c b/iguana/iguana_ramchain.c index 2b38a2555..9fa19d8e3 100755 --- a/iguana/iguana_ramchain.c +++ b/iguana/iguana_ramchain.c @@ -341,8 +341,11 @@ uint32_t iguana_ramchain_addunspent20(struct iguana_info *coin,struct iguana_pee printf("error writing vout scriptlen.%d errno.%d or scriptpos.%lld != %u\n",scriptlen,errno,(long long)scriptpos,u->scriptpos); else { - //fflush(addr->voutsfp); - //usleep(1000); + if ( coin->chain->fixit != 0 ) + { + fflush(addr->voutsfp); + usleep(1000); + } addr->dirty[0]++; } #ifdef __PNACL__ @@ -565,8 +568,11 @@ uint32_t iguana_ramchain_addspend256(struct iguana_info *coin,struct iguana_peer else { addr->dirty[1]++; - //fflush(addr->vinsfp); - //usleep(1000); + if ( coin->chain->fixit != 0 ) + { + fflush(addr->vinsfp); + usleep(1000); + } } #ifdef __PNACL__ //portable_mutex_unlock(&mutex); @@ -1047,7 +1053,7 @@ long iguana_ramchain_save(struct iguana_info *coin,RAMCHAIN_FUNC,uint32_t ipbits fpos = -1; } else iguana_ramchain_saveaction(fname,RAMCHAIN_ARG,fp,rdata,bp!=0?bp->n:1,ramchain->H.scriptoffset,zcash); *rdata = tmp; - //fflush(fp); + fflush(fp); fclose(fp); //sleep(3); } diff --git a/includes/iguana_globals.h b/includes/iguana_globals.h index 87a145fff..f00e640e5 100755 --- a/includes/iguana_globals.h +++ b/includes/iguana_globals.h @@ -42,7 +42,7 @@ char GLOBAL_GENESISDIR[512] = "genesis"; char GLOBAL_VALIDATEDIR[512] = "DB/purgeable"; char GLOBAL_CONFSDIR[512] = "confs"; #ifdef __linux -int32_t IGUANA_NUMHELPERS = 1; +int32_t IGUANA_NUMHELPERS = 8; #else int32_t IGUANA_NUMHELPERS = 1; #endif