This commit is contained in:
jl777
2019-02-18 05:08:49 -11:00
parent 667d50cea0
commit 7cced97fb9
2 changed files with 6 additions and 5 deletions

View File

@@ -1127,10 +1127,10 @@ uint64_t komodo_accrued_interest(int32_t *txheightp,uint32_t *locktimep,uint256
int32_t komodo_nextheight()
{
CBlockIndex *pindex; int32_t ht,longest = komodo_longestchain();
if ( (pindex= chainActive.LastTip()) != 0 && (ht= pindex->GetHeight()) >= longest )
CBlockIndex *pindex; int32_t ht;
if ( (pindex= chainActive.LastTip()) != 0 && (ht= pindex->GetHeight()) > 0 )
return(ht+1);
else return(longest + 1);
else return(komodo_longestchain() + 1);
}
int32_t komodo_isrealtime(int32_t *kmdheightp)