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