This commit is contained in:
jl777
2017-03-23 22:46:42 +02:00
parent 10c862f271
commit b2d09a90d4
2 changed files with 15 additions and 3 deletions

View File

@@ -620,7 +620,10 @@ void komodo_connectpindex(CBlockIndex *pindex)
CBlockIndex *komodo_chainactive(int32_t height)
{
return(chainActive[height]);
if ( chainActive.Tip() != 0 && height <= chainActive.Tip()->nHeight )
{
return(chainActive[height]);
} else return(0);
}
int32_t komodo_notaries(uint8_t pubkeys[64][33],int32_t height);