From ce86a489eb546a7438ec4185a2ea759db23922bf Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 2 Jul 2019 01:39:54 -1100 Subject: [PATCH] - function call --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 67ba03d79..a772de50b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -352,8 +352,9 @@ namespace { int GetHeight() { - if ( chainActive.LastTip() != 0 ) - return chainActive.LastTip()->GetHeight(); + CBlockIndex *pindex; + if ( (pindex= chainActive.LastTip()) != 0 ) + return pindex->GetHeight(); else return(-1); }