File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,15 @@ static CUpdatedBlock latestblock;
4343extern void TxToJSON (const CTransaction& tx, const uint256 hashBlock, UniValue& entry);
4444void ScriptPubKeyToJSON (const CScript& scriptPubKey, UniValue& out, bool fIncludeHex );
4545
46+ /* *
47+ * Get the difficulty of the net wrt to the given block index, or the chain tip if
48+ * not provided.
49+ *
50+ * @return A floating point number that is a multiple of the main net minimum
51+ * difficulty (4295032833 hashes).
52+ */
4653double GetDifficulty (const CBlockIndex* blockindex)
4754{
48- // Floating point number that is a multiple of the minimum difficulty,
49- // minimum difficulty = 1.0.
5055 if (blockindex == NULL )
5156 {
5257 if (chainActive.Tip () == NULL )
You can’t perform that action at this time.
0 commit comments