Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

blockchain.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double GetDifficulty (const CBlockIndex *blockindex=nullptr)
 Get the difficulty of the net wrt to the given block index, or the chain tip if not provided. More...
 
void RPCNotifyBlockChange (bool ibd, const CBlockIndex *)
 Callback for when block tip changed. More...
 
UniValue blockToJSON (const CBlock &block, const CBlockIndex *blockindex, bool txDetails=false)
 Block description to JSON. More...
 
UniValue mempoolInfoToJSON ()
 Mempool information to JSON. More...
 
UniValue mempoolToJSON (bool fVerbose=false)
 Mempool to JSON. More...
 
UniValue blockheaderToJSON (const CBlockIndex *blockindex)
 Block header to JSON. More...
 

Function Documentation

◆ blockheaderToJSON()

◆ blockToJSON()

◆ GetDifficulty()

double GetDifficulty ( const CBlockIndex blockindex = nullptr)

Get the difficulty of the net wrt to the given block index, or the chain tip if not provided.

Returns
A floating point number that is a multiple of the main net minimum difficulty (4295032833 hashes).

Definition at line 92 of file blockchain.cpp.

References chainActive, and GetDifficulty().

◆ mempoolInfoToJSON()

◆ mempoolToJSON()

◆ RPCNotifyBlockChange()

void RPCNotifyBlockChange ( bool  ibd,
const CBlockIndex  
)
Released under the MIT license