This commit is contained in:
jl777
2016-11-18 05:11:56 -03:00
parent 165149118f
commit 60e0c887c5

View File

@@ -468,13 +468,13 @@ int8_t komodo_minerid(int32_t height)
{
static uint32_t depth;
int32_t notaryid; CBlockIndex *pindex; uint8_t pubkey33[33];
if ( depth < 3 && height <= komodo_currentheight() )//chainActive.Tip()->nHeight )
if ( Minerids[height] >= -1 )
{
printf("cached[%d] -> %d\n",height,Minerids[height]);
return(Minerids[height]);
}
if ( depth < 1 )
{
if ( Minerids[height] >= -1 )
{
printf("cached[%d] -> %d\n",height,Minerids[height]);
return(Minerids[height]);
}
if ( (pindex= chainActive[height]) != 0 )
{
depth++;