Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
8387a89324
  1. 3
      iguana/iguana_chains.c

3
iguana/iguana_chains.c

@ -367,6 +367,8 @@ void iguana_chainparms(struct iguana_chain *chain,cJSON *argjson)
else chain->initialreward = 50 * SATOSHIDEN;
if ( chain->serverport[0] == 0 )
sprintf(chain->serverport,"127.0.0.1:%u",chain->rpcport);
if ( strcmp(chain->symbol,"BTC") != 0 && strcmp(chain->symbol,"BTCD") != 0 )
{
chain->pubtype = juint(argjson,"pubval");
chain->p2shtype = juint(argjson,"p2shval");
chain->wiftype = juint(argjson,"wifval");
@ -381,6 +383,7 @@ void iguana_chainparms(struct iguana_chain *chain,cJSON *argjson)
if ( (hexstr= jstr(argjson,"wifval")) != 0 && strlen(hexstr) == 2 )
decode_hex((uint8_t *)&chain->wiftype,1,hexstr);
}
}
printf("addrtypes.(%02x %02x %02x) (%d %d %d)\n",chain->pubtype,chain->p2shtype,chain->wiftype,chain->pubtype,chain->p2shtype,chain->wiftype);
if ( (hexstr= jstr(argjson,"netmagic")) != 0 && strlen(hexstr) == 8 )
decode_hex((uint8_t *)chain->netmagic,4,hexstr);

Loading…
Cancel
Save