Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
4137a38049
  1. 17312
      iguana/confs/DGB_peers.txt
  2. 2432
      iguana/confs/DOGE_peers.txt
  3. 4476
      iguana/confs/EAC_peers.txt
  4. 5
      iguana/iguana_msg.c
  5. 2
      iguana/iguana_recv.c
  6. 2
      iguana/iguana_unspents.c

17312
iguana/confs/DGB_peers.txt

File diff suppressed because it is too large

2432
iguana/confs/DOGE_peers.txt

File diff suppressed because it is too large

4476
iguana/confs/EAC_peers.txt

File diff suppressed because it is too large

5
iguana/iguana_msg.c

@ -423,7 +423,8 @@ void iguana_gotaddr(struct iguana_info *coin,struct iguana_peer *addr,struct igu
} }
if ( strcmp(coin->symbol,"BTC") != 0 || (rand() % 10) == 0 ) if ( strcmp(coin->symbol,"BTC") != 0 || (rand() % 10) == 0 )
iguana_possible_peer(coin,ipport); iguana_possible_peer(coin,ipport);
//printf("gotaddr.(%s:%d) from (%s)\n",ipaddr,port,addr->ipaddr); if ( 0 && strncmp("BTC",coin->symbol,3) != 0 )
printf("%s\n",ipaddr);
} }
void iguana_gotping(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_peer *addr,uint64_t nonce,uint8_t *data) void iguana_gotping(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_peer *addr,uint64_t nonce,uint8_t *data)
@ -854,7 +855,7 @@ int32_t iguana_msgparser(struct iguana_info *coin,struct iguana_peer *addr,struc
} }
if ( addr != 0 ) if ( addr != 0 )
{ {
if ( strcmp("EAC",coin->symbol) == 0 ) if ( 0 && strcmp("DOGE",coin->symbol) == 0 )
printf("iguana_msgparser from (%s) parse.(%s) len.%d\n",addr->ipaddr,H->command,recvlen); printf("iguana_msgparser from (%s) parse.(%s) len.%d\n",addr->ipaddr,H->command,recvlen);
//iguana_peerblockrequest(coin,addr->blockspace,IGUANA_MAXPACKETSIZE,addr,iguana_blockhash(coin,100),0); //iguana_peerblockrequest(coin,addr->blockspace,IGUANA_MAXPACKETSIZE,addr,iguana_blockhash(coin,100),0);
addr->lastcontact = (uint32_t)time(NULL); addr->lastcontact = (uint32_t)time(NULL);

2
iguana/iguana_recv.c

@ -900,7 +900,7 @@ struct iguana_bundle *iguana_bundleset(struct iguana_info *coin,struct iguana_bl
{ {
if ( prevbp->hdrsi+1 == coin->bundlescount && prevbundlei == coin->chain->bundlesize-1 ) if ( prevbp->hdrsi+1 == coin->bundlescount && prevbundlei == coin->chain->bundlesize-1 )
{ {
printf("AUTOCREATE.%d\n",prevbp->bundleheight + coin->chain->bundlesize); printf("%s AUTOCREATE.%d\n",coin->symbol,prevbp->bundleheight + coin->chain->bundlesize);
if ( (bp= iguana_bundlecreate(coin,bundleip,prevbp->bundleheight + coin->chain->bundlesize,hash2,zero,0)) != 0 ) if ( (bp= iguana_bundlecreate(coin,bundleip,prevbp->bundleheight + coin->chain->bundlesize,hash2,zero,0)) != 0 )
{ {
if ( bp->queued == 0 ) if ( bp->queued == 0 )

2
iguana/iguana_unspents.c

@ -886,7 +886,7 @@ int32_t iguana_RTunspentslists(struct supernet_info *myinfo,struct iguana_info *
cJSON *iguana_RTlistunspent(struct supernet_info *myinfo,struct iguana_info *coin,cJSON *argarray,int32_t minconf,int32_t maxconf,char *remoteaddr) cJSON *iguana_RTlistunspent(struct supernet_info *myinfo,struct iguana_info *coin,cJSON *argarray,int32_t minconf,int32_t maxconf,char *remoteaddr)
{ {
int32_t numrmds,numunspents=0; uint8_t *rmdarray; cJSON *item,*retjson = cJSON_CreateArray(); int32_t numrmds,numunspents=0; uint8_t *rmdarray; cJSON *retjson = cJSON_CreateArray();
rmdarray = iguana_rmdarray(myinfo,coin,&numrmds,argarray,0); rmdarray = iguana_rmdarray(myinfo,coin,&numrmds,argarray,0);
iguana_unspents(myinfo,coin,retjson,minconf,maxconf,rmdarray,numrmds,(1 << 30),0,&numunspents,remoteaddr); iguana_unspents(myinfo,coin,retjson,minconf,maxconf,rmdarray,numrmds,(1 << 30),0,&numunspents,remoteaddr);
if ( rmdarray != 0 ) if ( rmdarray != 0 )

Loading…
Cancel
Save