This commit is contained in:
jl777
2016-11-12 08:44:11 -03:00
parent 02286e6339
commit 6677fa316c
2 changed files with 2 additions and 2 deletions

View File

@@ -450,7 +450,7 @@ void komodo_index2pubkey33(uint8_t *pubkey33,CBlockIndex *pindex,int32_t height)
int8_t komodo_minerid(int32_t height)
{
int32_t notaryid; CBlockIndex *pindex; uint8_t pubkey33[33];
if ( height <= chainActive.Tip()->nHeight )
if ( height <= CURRENT_HEIGHT )//chainActive.Tip()->nHeight )
{
if ( (pindex= chainActive[height]) != 0 )
{

View File

@@ -396,7 +396,7 @@ Value notaries(const Array& params, bool fHelp)
int32_t height = atoi(params[0].get_str().c_str());
if ( height < 0 )
height = 0;
fprintf(stderr,"notaries as of height.%d\n",height);
//fprintf(stderr,"notaries as of height.%d\n",height);
if ( height > chainActive.Height()+20000 )
throw JSONRPCError(RPC_INVALID_PARAMETER, "Block height out of range");
else