Browse Source

test

pull/4/head
jl777 7 years ago
parent
commit
6721741d13
  1. 7
      src/komodo_notary.h

7
src/komodo_notary.h

@ -154,6 +154,13 @@ int32_t komodo_ratify_threshold(int32_t height,uint64_t signedmask)
int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t height)
{
int32_t i,htind,n; uint64_t mask = 0; struct knotary_entry *kp,*tmp;
if ( height >= 180000 )
{
n = (int32_t)(sizeof(Notaries_elected)/sizeof(*Notaries_elected));
for (i=0; i<n; i++)
decode_hex(pubkeys[i],33,Notaries_elected[i][1]);
return(n);
}
htind = height / KOMODO_ELECTION_GAP;
pthread_mutex_lock(&komodo_mutex);
n = Pubkeys[htind].numnotaries;

Loading…
Cancel
Save