- function call

This commit is contained in:
jl777
2019-07-02 01:39:54 -11:00
parent 1e80fc44ec
commit ce86a489eb

View File

@@ -352,8 +352,9 @@ namespace {
int GetHeight() int GetHeight()
{ {
if ( chainActive.LastTip() != 0 ) CBlockIndex *pindex;
return chainActive.LastTip()->GetHeight(); if ( (pindex= chainActive.LastTip()) != 0 )
return pindex->GetHeight();
else return(-1); else return(-1);
} }