Fix
This commit is contained in:
@@ -31,6 +31,7 @@ using namespace std;
|
|||||||
|
|
||||||
extern void TxToJSON(const CTransaction& tx, const uint256 hashBlock, UniValue& entry);
|
extern void TxToJSON(const CTransaction& tx, const uint256 hashBlock, UniValue& entry);
|
||||||
void ScriptPubKeyToJSON(const CScript& scriptPubKey, UniValue& out, bool fIncludeHex);
|
void ScriptPubKeyToJSON(const CScript& scriptPubKey, UniValue& out, bool fIncludeHex);
|
||||||
|
int32_t komodo_longestchain();
|
||||||
|
|
||||||
double GetDifficultyINTERNAL(const CBlockIndex* blockindex, bool networkDifficulty)
|
double GetDifficultyINTERNAL(const CBlockIndex* blockindex, bool networkDifficulty)
|
||||||
{
|
{
|
||||||
@@ -1299,7 +1300,7 @@ UniValue getblockchaininfo(const UniValue& params, bool fHelp)
|
|||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
double progress;
|
double progress;
|
||||||
if ( ASSETCHAINS_SYMBOL[0] == 0 ) {
|
if ( ASSETCHAINS_SYMBOL[0] == 0 ) {
|
||||||
progress = Checkpoints::GuessVerificationProgress(chainParams.Checkpoints(), chainActive.LastTip());
|
progress = Checkpoints::GuessVerificationProgress(Params.Checkpoints(), chainActive.LastTip());
|
||||||
} else {
|
} else {
|
||||||
int32_t longestchain = komodo_longestchain();
|
int32_t longestchain = komodo_longestchain();
|
||||||
progress = (longestchain > 0 ) ? (double) chainActive.Height() / longestchain : 1.0;
|
progress = (longestchain > 0 ) ? (double) chainActive.Height() / longestchain : 1.0;
|
||||||
|
|||||||
Reference in New Issue
Block a user