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;
43
43
extern void TxToJSON (const CTransaction& tx, const uint256 hashBlock, UniValue& entry);
44
44
void ScriptPubKeyToJSON (const CScript& scriptPubKey, UniValue& out, bool fIncludeHex );
45
45
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
+ */
46
53
double GetDifficulty (const CBlockIndex* blockindex)
47
54
{
48
- // Floating point number that is a multiple of the minimum difficulty,
49
- // minimum difficulty = 1.0.
50
55
if (blockindex == NULL )
51
56
{
52
57
if (chainActive.Tip () == NULL )
You can’t perform that action at this time.
0 commit comments