jl777 7 years ago
parent
commit
a39dfcc5d1
  1. 3
      iguana/dpow/dpow_rpc.c
  2. 4
      iguana/iguana_notary.c

3
iguana/dpow/dpow_rpc.c

@ -65,7 +65,6 @@ int32_t komodo_initjson(char *fname)
{ {
if ( (argjson= cJSON_Parse(fstr)) != 0 ) if ( (argjson= cJSON_Parse(fstr)) != 0 )
{ {
printf("(%s)\n",fstr);
if ( (port= juint(argjson,"port")) != 0 ) if ( (port= juint(argjson,"port")) != 0 )
Notaries_port = port; Notaries_port = port;
if ( (num= juint(argjson,"BTCminsigs")) > Notaries_BTCminsigs ) if ( (num= juint(argjson,"BTCminsigs")) > Notaries_BTCminsigs )
@ -91,7 +90,7 @@ int32_t komodo_initjson(char *fname)
{ {
Notaries_elected[i][0] = clonestr(field); Notaries_elected[i][0] = clonestr(field);
Notaries_elected[i][1] = clonestr(hexstr); Notaries_elected[i][1] = clonestr(hexstr);
printf("%d of %d: %s %s\n",i,n,field,hexstr); //printf("%d of %d: %s %s\n",i,n,field,hexstr);
} }
else else
{ {

4
iguana/iguana_notary.c

@ -347,9 +347,9 @@ void iguana_dPoWupdate(struct supernet_info *myinfo,struct dpow_info *dp)
void dpow_addresses() void dpow_addresses()
{ {
int32_t i; char coinaddr[64]; uint8_t pubkey[33]; int32_t i; char coinaddr[64]; uint8_t pubkey[33];
for (i=0; i<sizeof(Notaries)/sizeof(*Notaries); i++) for (i=0; i<Notaries_num; i++)
{ {
decode_hex(pubkey,33,Notaries[i][1]); decode_hex(pubkey,33,Notaries_elected[i][1]);
bitcoin_address(coinaddr,60,pubkey,33); bitcoin_address(coinaddr,60,pubkey,33);
printf("%s ",coinaddr); printf("%s ",coinaddr);
} }

Loading…
Cancel
Save