From 37162298241c186778b64f3c04406a5c5071b878 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 5 Sep 2018 06:09:00 -1100 Subject: [PATCH] Fix --- src/rpcblockchain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 1701dd4a6..08592fb67 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -31,6 +31,7 @@ using namespace std; extern void TxToJSON(const CTransaction& tx, const uint256 hashBlock, UniValue& entry); void ScriptPubKeyToJSON(const CScript& scriptPubKey, UniValue& out, bool fIncludeHex); +int32_t komodo_longestchain(); double GetDifficultyINTERNAL(const CBlockIndex* blockindex, bool networkDifficulty) { @@ -1299,7 +1300,7 @@ UniValue getblockchaininfo(const UniValue& params, bool fHelp) LOCK(cs_main); double progress; if ( ASSETCHAINS_SYMBOL[0] == 0 ) { - progress = Checkpoints::GuessVerificationProgress(chainParams.Checkpoints(), chainActive.LastTip()); + progress = Checkpoints::GuessVerificationProgress(Params().Checkpoints(), chainActive.LastTip()); } else { int32_t longestchain = komodo_longestchain(); progress = (longestchain > 0 ) ? (double) chainActive.Height() / longestchain : 1.0;