Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
b33cdb8d77
  1. 7
      iguana/iguana_init.c

7
iguana/iguana_init.c

@ -468,7 +468,7 @@ struct iguana_info *iguana_coinstart(struct iguana_info *coin,int32_t initialhei
memset(&lastbundle,0,sizeof(lastbundle));
for (iter=coin->peers.numranked>8; iter<2; iter++)
{
//#ifdef __PNACL__
#ifdef __PNACL__
if ( iter == 0 )
{
char **ipaddrs = 0; int32_t j,num;
@ -492,6 +492,8 @@ struct iguana_info *iguana_coinstart(struct iguana_info *coin,int32_t initialhei
else
{
#include "confs/BTCD_hdrs.h"
if ( strcmp(coin->symbol,"BTCD") == 0 )
{
bits256 hash2,allhash,hash1; int32_t bundlei,i,height; struct iguana_bundle *bp;
for (i=0; i<sizeof(BTCD_hdrs)/sizeof(*BTCD_hdrs); i++)
{
@ -510,7 +512,8 @@ struct iguana_info *iguana_coinstart(struct iguana_info *coin,int32_t initialhei
iguana_initfinal(coin,lastbundle);
break;
}
//#endif
}
#endif
sprintf(fname,"%s/%s_%s.txt",GLOBAL_CONFSDIR,coin->symbol,(iter == 0) ? "peers" : "hdrs"), OS_compatible_path(fname);
//sprintf(fname,"confs/%s_%s.txt",coin->symbol,(iter == 0) ? "peers" : "hdrs");
//sprintf(fname,"tmp/%s/%s.txt",coin->symbol,(iter == 0) ? "peers" : "hdrs");

Loading…
Cancel
Save