test
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user