test
This commit is contained in:
@@ -122,6 +122,16 @@ const char *Notaries_elected[][2] =
|
||||
{ "xxspot2_XX", "03d85b221ea72ebcd25373e7961f4983d12add66a92f899deaf07bab1d8b6f5573" }
|
||||
};
|
||||
|
||||
int32_t komodo_electednotary(uint8_t *pubkey33)
|
||||
{
|
||||
char pubkeystr[67];
|
||||
init_hexbytes_noT(pubkeystr,pubkey33,33);
|
||||
for (i=0; i<sizeof(Notaries_elected)/sizeof(*Notaries_elected); i++)
|
||||
if ( strcmp(pubkeystr,Notaries_elected[i]) == 0 )
|
||||
return(i);
|
||||
return(-1);
|
||||
}
|
||||
|
||||
int32_t komodo_ratify_threshold(int32_t height,uint64_t signedmask)
|
||||
{
|
||||
int32_t htind,numnotaries,i,wt = 0;
|
||||
|
||||
Reference in New Issue
Block a user