Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
076dfa381d
  1. 6
      iguana/iguana_recv.c
  2. 2
      iguana/iguana_unspents.c

6
iguana/iguana_recv.c

@ -1652,7 +1652,7 @@ int32_t iguana_processrecv(struct supernet_info *myinfo,struct iguana_info *coin
flag += iguana_processrecvQ(coin,&newhwm); flag += iguana_processrecvQ(coin,&newhwm);
//printf("reqhdrs\n"); //printf("reqhdrs\n");
flag += iguana_reqhdrs(coin); flag += iguana_reqhdrs(coin);
if ( coin->spendvectorsaved > 1 ) //if ( coin->spendvectorsaved > 1 )
{ {
if ( time(NULL) > coin->laststats+5 ) if ( time(NULL) > coin->laststats+5 )
{ {
@ -1663,11 +1663,11 @@ int32_t iguana_processrecv(struct supernet_info *myinfo,struct iguana_info *coin
coin->laststats = (uint32_t)time(NULL); coin->laststats = (uint32_t)time(NULL);
} }
} }
else /*else
{ {
flag += iguana_reqblocks(coin); flag += iguana_reqblocks(coin);
iguana_bundlestats(coin,str,IGUANA_DEFAULTLAG); iguana_bundlestats(coin,str,IGUANA_DEFAULTLAG);
} }*/
if ( time(NULL) > coin->spendvectorsaved ) if ( time(NULL) > coin->spendvectorsaved )
{ {
for (i=0; i<coin->chain->bundlesize; i++) for (i=0; i<coin->chain->bundlesize; i++)

2
iguana/iguana_unspents.c

@ -290,7 +290,7 @@ struct iguana_pkhash *iguana_pkhashfind(struct iguana_info *coin,struct iguana_r
else if ( pkind != 0 ) else if ( pkind != 0 )
printf("[%d] not found pkind.%d vs num.%d RT.%d rdata.%p\n",i,pkind,rdata->numpkinds,bp->isRT,rdata); printf("[%d] not found pkind.%d vs num.%d RT.%d rdata.%p\n",i,pkind,rdata->numpkinds,bp->isRT,rdata);
} }
else if ( coin->spendvectorsaved > 1 ) else if ( coin->spendvectorsaved > 1 && bp != coin->current )
printf("%s.[%d] skip null rdata isRT.%d\n",coin->symbol,i,bp->isRT); printf("%s.[%d] skip null rdata isRT.%d\n",coin->symbol,i,bp->isRT);
} }
} }

Loading…
Cancel
Save