This commit is contained in:
jl777
2017-03-12 13:11:45 +02:00
parent f55023c83d
commit f9ad4d10a5

View File

@@ -137,6 +137,8 @@ int32_t komodo_electednotary(uint8_t *pubkey33,int32_t height)
return(i); return(i);
} }
} }
if ( height < 300000 )
{
for (i=0; i<sizeof(Notaries_genesis)/sizeof(*Notaries_genesis); i++) for (i=0; i<sizeof(Notaries_genesis)/sizeof(*Notaries_genesis); i++)
{ {
if ( strcmp(pubkeystr,(char *)Notaries_genesis[i][1]) == 0 ) if ( strcmp(pubkeystr,(char *)Notaries_genesis[i][1]) == 0 )
@@ -148,6 +150,7 @@ int32_t komodo_electednotary(uint8_t *pubkey33,int32_t height)
decode_hex(legacy33,33,(char *)"0252b6185bf8ea7efe8bbc345ddc8da87329149f30233088387abd716d4aa9e974"); decode_hex(legacy33,33,(char *)"0252b6185bf8ea7efe8bbc345ddc8da87329149f30233088387abd716d4aa9e974");
if ( memcmp(pubkey33,legacy33,33) == 0 ) if ( memcmp(pubkey33,legacy33,33) == 0 )
return(128); return(128);
}
return(-1); return(-1);
} }