test
This commit is contained in:
@@ -606,7 +606,7 @@ void komodo_connectpindex(CBlockIndex *pindex)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t height);
|
int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t height);
|
||||||
int32_t komodo_electednotary(uint8_t *pubkey33);
|
int32_t komodo_electednotary(uint8_t *pubkey33,int32_t height);
|
||||||
|
|
||||||
int8_t komodo_minerid(int32_t height)
|
int8_t komodo_minerid(int32_t height)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -122,9 +122,9 @@ const char *Notaries_elected[][2] =
|
|||||||
{ "xxspot2_XX", "03d85b221ea72ebcd25373e7961f4983d12add66a92f899deaf07bab1d8b6f5573" }
|
{ "xxspot2_XX", "03d85b221ea72ebcd25373e7961f4983d12add66a92f899deaf07bab1d8b6f5573" }
|
||||||
};
|
};
|
||||||
|
|
||||||
int32_t komodo_electednotary(uint8_t *pubkey33)
|
int32_t komodo_electednotary(uint8_t *pubkey33,int32_t height)
|
||||||
{
|
{
|
||||||
char pubkeystr[67];
|
char pubkeystr[67]; int32_t i;
|
||||||
init_hexbytes_noT(pubkeystr,pubkey33,33);
|
init_hexbytes_noT(pubkeystr,pubkey33,33);
|
||||||
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,Notaries_elected[i]) == 0 )
|
if ( strcmp(pubkeystr,Notaries_elected[i]) == 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user