Browse Source

test

etomic
jl777 8 years ago
parent
commit
0a65bc7ad0
  1. 4
      gecko/gecko.c
  2. 8
      iguana/iguana777.c

4
gecko/gecko.c

@ -180,8 +180,8 @@ struct iguana_info *basilisk_geckochain(struct supernet_info *myinfo,char *symbo
virt->enableCACHE = 1;
serialized = get_dataptr(BASILISK_HDROFFSET,&ptr,&datalen,hexbuf,sizeof(hexbuf),hexstr);
iguana_chaininit(myinfo,virt->chain,1,valsobj);
if ( virt->FULLNODE >= 0 )
virt->chain->userpass[0] = 0;
//if ( virt->FULLNODE >= 0 )
// virt->chain->userpass[0] = 0;
virt->chain->isPoS = 1;
hdrsize = (virt->chain->zcash != 0) ? sizeof(struct iguana_msgzblockhdr) : sizeof(struct iguana_msgblockhdr);
if ( gecko_blocknonce_verify(virt,serialized,hdrsize,virt->chain->nBits,0,0) > 0 )

8
iguana/iguana777.c

@ -58,8 +58,8 @@ struct iguana_info *iguana_coinadd(char *symbol,char *name,cJSON *argjson,int32_
else
{
coin->chain = iguana_chainfind(myinfo,(char *)symbol,argjson,1);
if ( coin->FULLNODE >= 0 )
coin->chain->userpass[0] = 0;
//if ( coin->FULLNODE >= 0 )
// coin->chain->userpass[0] = 0;
coin->peers = calloc(1,sizeof(*coin->peers));
for (j=0; j<IGUANA_MAXPEERS; j++)
{
@ -1158,8 +1158,8 @@ struct iguana_info *iguana_setcoin(char *symbol,void *launched,int32_t maxpeers,
{
printf("cant initialize chain.(%s)\n",jstr(json,0));
strcpy(coin->name,"illegalcoin");
if ( coin->FULLNODE >= 0 )
coin->chain->userpass[0] = 0;
//if ( coin->FULLNODE >= 0 )
// coin->chain->userpass[0] = 0;
coin->symbol[0] = 0;
return(0);
}

Loading…
Cancel
Save