This commit is contained in:
jl777
2017-03-24 01:27:03 +02:00
parent 7d44d3dddd
commit 58bec1f9b5
2 changed files with 3 additions and 1 deletions

View File

@@ -605,7 +605,7 @@ CBlockIndex *komodo_chainactive(int32_t height)
uint32_t komodo_heightstamp(int32_t height)
{
CBlock block; CBlockIndex *ptr;
if ( (ptr= komodo_chainactive(height)) != 0 )
if ( height > 0 && (ptr= komodo_chainactive(height)) != 0 )
{
if ( komodo_blockload(block,ptr) == 0 && komodo_block2height(&block) == height )
return(block.nTime);