|
|
@ -342,6 +342,7 @@ uint32_t iguana_ramchain_addunspent20(struct iguana_info *coin,struct iguana_pee |
|
|
|
else |
|
|
|
{ |
|
|
|
fflush(addr->voutsfp); |
|
|
|
usleep(1000); |
|
|
|
addr->dirty[0]++; |
|
|
|
} |
|
|
|
#ifdef __PNACL__ |
|
|
@ -610,6 +611,7 @@ uint32_t iguana_ramchain_addspend256(struct iguana_info *coin,struct iguana_peer |
|
|
|
{ |
|
|
|
addr->dirty[1]++; |
|
|
|
fflush(addr->vinsfp); |
|
|
|
usleep(1000); |
|
|
|
} |
|
|
|
#ifdef __PNACL__ |
|
|
|
//portable_mutex_unlock(&mutex);
|
|
|
@ -1939,10 +1941,10 @@ long iguana_ramchain_data(struct iguana_info *coin,struct iguana_peer *addr,stru |
|
|
|
//char str[65]; printf("saved.%s [%d:%d] fpos.%d datalen.%d\n",bits256_str(str,block->RO.hash2),bp->hdrsi,bundlei,fpos,origtxdata->datalen);
|
|
|
|
ramchain->H.ROflag = 0; |
|
|
|
flag = 1; |
|
|
|
if ( addr->voutsfp != 0 ) //addr->dirty[0] != 0 &&
|
|
|
|
/*if ( addr->voutsfp != 0 ) //addr->dirty[0] != 0 &&
|
|
|
|
fflush(addr->voutsfp); |
|
|
|
if ( addr->vinsfp != 0 ) //addr->dirty[1] != 0 &&
|
|
|
|
fflush(addr->vinsfp); |
|
|
|
fflush(addr->vinsfp);*/ |
|
|
|
memset(&R,0,sizeof(R)); |
|
|
|
if ( verifyflag != 0 && (mapchain= iguana_ramchain_map(coin,fname,0,1,&R,0,(uint32_t)addr->ipbits,block->RO.hash2,block->RO.prev_block,bundlei,fpos,1,0)) == 0 ) |
|
|
|
{ |
|
|
|