Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
bc062d0291
  1. 2
      iguana/iguana_bundles.c
  2. 2
      iguana/iguana_peers.c
  3. 2
      iguana/iguana_unspents.c

2
iguana/iguana_bundles.c

@ -1531,7 +1531,7 @@ void iguana_bundlestats(struct supernet_info *myinfo,struct iguana_info *coin,ch
//if ( logfp != 0 )
printf("%s bQ.%d %d:%02d:%02d stuck.%d max.%d\n",str,queue_size(&bundlesQ),(int32_t)difft.x/3600,(int32_t)(difft.x/60)%60,(int32_t)difft.x%60,coin->stucktime!=0?(uint32_t)time(NULL) - coin->stucktime:0,coin->maxstuck);
strcpy(coin->lastdispstr,str);
//if ( (rand() % 100) == 0 )
if ( (rand() % 100) == 0 )
myallocated(0,0);
coin->lastdisp = (uint32_t)time(NULL);
}

2
iguana/iguana_peers.c

@ -890,7 +890,7 @@ uint32_t iguana_possible_peer(struct iguana_info *coin,char *ipaddr)
}
#endif
ipbits = (uint32_t)calc_ipbits(ipaddr);
printf("%s check possible peer.(%s)\n",coin->symbol,ipaddr);
//printf("%s check possible peer.(%s)\n",coin->symbol,ipaddr);
if ( iguana_peerslot(coin,(uint32_t)ipbits,0) != 0 )
return((uint32_t)time(NULL));
for (i=n=0; i<IGUANA_MAXPEERS; i++)

2
iguana/iguana_unspents.c

@ -1334,7 +1334,7 @@ int64_t iguana_utxoaddr_gen(struct supernet_info *myinfo,struct iguana_info *coi
bitcoin_address(checkaddr,coin->chain->pubtype,UA.rmd160,sizeof(UA.rmd160));
if ( strcmp(checkaddr,coinaddr) != 0 )
printf("rw coinaddr error %s != %s\n",coinaddr,checkaddr);
else printf("%d: ind.%04x %s %.8f %.8f %d\n",total,ind,coinaddr,dstr(UA.histbalance),dstr(utxoaddr->histbalance),counts[ind]);
//else printf("%d: ind.%04x %s %.8f %.8f %d\n",total,ind,coinaddr,dstr(UA.histbalance),dstr(utxoaddr->histbalance),counts[ind]);
total++;
if ( memcmp(&table[(offsets[ind] + counts[ind]) * UTXOADDR_ITEMSIZE],item,UTXOADDR_ITEMSIZE) != 0 )
printf("rwutxoaddr cmp error\n");

Loading…
Cancel
Save