test
This commit is contained in:
@@ -621,6 +621,7 @@ int8_t komodo_minerid(int32_t height)
|
|||||||
return(i);
|
return(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
printf("try electednotary %p\n",pindex);
|
||||||
return(komodo_electednotary(pubkey33,height));
|
return(komodo_electednotary(pubkey33,height));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -126,9 +126,13 @@ int32_t komodo_electednotary(uint8_t *pubkey33,int32_t height)
|
|||||||
{
|
{
|
||||||
char pubkeystr[67]; int32_t i;
|
char pubkeystr[67]; int32_t i;
|
||||||
init_hexbytes_noT(pubkeystr,pubkey33,33);
|
init_hexbytes_noT(pubkeystr,pubkey33,33);
|
||||||
|
printf("%s vs\n",pubkeystr);
|
||||||
for (i=0; i<sizeof(Notaries_elected)/sizeof(*Notaries_elected); i++)
|
for (i=0; i<sizeof(Notaries_elected)/sizeof(*Notaries_elected); i++)
|
||||||
|
{
|
||||||
if ( strcmp(pubkeystr,(char *)Notaries_elected[i][1]) == 0 )
|
if ( strcmp(pubkeystr,(char *)Notaries_elected[i][1]) == 0 )
|
||||||
return(i);
|
return(i);
|
||||||
|
printf("%s\n",(char *)Notaries_elected[i][1]);
|
||||||
|
}
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user