Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
cba11603a3
  1. 6
      iguana/iguana_ramchain.c
  2. 2
      iguana/iguana_spendvectors.c

6
iguana/iguana_ramchain.c

@ -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 )
{

2
iguana/iguana_spendvectors.c

@ -1142,7 +1142,7 @@ int32_t iguana_bundlevalidate(struct supernet_info *myinfo,struct iguana_info *c
if ( (len= iguana_peerblockrequest(myinfo,coin,blockspace,max,0,bp->hashes[i],1)) < 0 )
{
errs++;
fprintf(stderr,"-%s.[%d:%d] ",coin->symbol,bp->hdrsi,i);
//fprintf(stderr,"-%s.[%d:%d] ",coin->symbol,bp->hdrsi,i);
//printf("bundlevalidate: %s delete [%d:%d]\n",coin->symbol,bp->hdrsi,i);
iguana_blockunmark(coin,bp->blocks[i],bp,i,1);
totalerrs++;

Loading…
Cancel
Save