This commit is contained in:
jl777
2016-11-11 20:19:20 -03:00
parent 4a4e912bbe
commit e6f6a829c8
3 changed files with 3 additions and 2 deletions

View File

@@ -464,7 +464,7 @@ int8_t komodo_minerid(int32_t height)
int32_t komodo_is_special(int32_t height,uint8_t pubkey33[33])
{
int32_t notaryid;
int32_t i,notaryid;
komodo_chosennotary(&notaryid,height,pubkey33);
if ( height >= 34000 && notaryid >= 0 )
{

View File

@@ -19,6 +19,7 @@ int32_t komodo_notarizeddata(int32_t nHeight,uint256 *notarized_hashp,uint256 *n
char *komodo_issuemethod(char *method,char *params,uint16_t port);
void komodo_init(int32_t height);
void komodo_assetchain_pubkeys(char *jsonstr);
int32_t komodo_chosennotary(int32_t *notaryidp,int32_t height,uint8_t *pubkey33);
int COINBASE_MATURITY = 100;

View File

@@ -224,7 +224,7 @@ int32_t komodo_notarizeddata(int32_t nHeight,uint256 *notarized_hashp,uint256 *n
void komodo_init(int32_t height)
{
static int didinit; uint256 zero; int32_t k,n; uint8_t pubkeys[64][33];
static int didinit; uint256 zero; int32_t i,k,n; uint8_t pubkeys[64][33];
if ( didinit == 0 )
{
pthread_mutex_init(&komodo_mutex,NULL);