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

4
iguana/dpow/dpow_rpc.c

@ -98,7 +98,7 @@ int32_t komodo_notaries(char *symbol,uint8_t pubkeys[64][33],int32_t height)
decode_hex(pubkeys[i],33,Notaries_elected[i][1]); decode_hex(pubkeys[i],33,Notaries_elected[i][1]);
return(Notaries_num); return(Notaries_num);
} else return(-1); } else return(-1);
if ( (coin= iguana_coinfind(symbol)) != 0 ) /*if ( (coin= iguana_coinfind(symbol)) != 0 )
{ {
if ( height < 0 ) if ( height < 0 )
{ {
@ -146,7 +146,7 @@ int32_t komodo_notaries(char *symbol,uint8_t pubkeys[64][33],int32_t height)
} }
} }
//printf("komodo_notaries returns.%d\n",num); //printf("komodo_notaries returns.%d\n",num);
return(num); return(num);*/
} }
bits256 dpow_getbestblockhash(struct supernet_info *myinfo,struct iguana_info *coin) bits256 dpow_getbestblockhash(struct supernet_info *myinfo,struct iguana_info *coin)

4
iguana/iguana_notary.c

@ -86,7 +86,7 @@ int32_t dpow_txhasnotarization(struct supernet_info *myinfo,struct iguana_info *
decode_hex(script,len,hexstr); decode_hex(script,len,hexstr);
if ( script[0] == 33 && script[34] == 0xac ) if ( script[0] == 33 && script[34] == 0xac )
{ {
for (j=0; j<sizeof(Notaries_elected)/sizeof(*Notaries_elected); j++) for (j=0; j<Notaries_num; j++)
{ {
if ( strncmp(Notaries_elected[j][1],hexstr+2,66) == 0 ) if ( strncmp(Notaries_elected[j][1],hexstr+2,66) == 0 )
{ {
@ -626,7 +626,7 @@ void _iguana_notarystats(char *fname,int32_t totals[64],int32_t dispflag)
if ( dispflag != 0 ) if ( dispflag != 0 )
{ {
printf("after %s\n",fname); printf("after %s\n",fname);
for (i=0; i<64; i++) for (i=0; i<Notaries_num; i++)
{ {
if ( totals[i] != 0 ) if ( totals[i] != 0 )
printf("%s, %d\n",Notaries_elected[i][0],totals[i]); printf("%s, %d\n",Notaries_elected[i][0],totals[i]);

Loading…
Cancel
Save