Fabcoin Core  0.16.2
P2P Digital Currency
Functions
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

UniValue blockheaderToJSON ( const CBlockIndex blockindex)

Block header to JSON.

!!

!!

Definition at line 125 of file blockchain.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

UniValue blockToJSON ( const CBlock block,
const CBlockIndex blockindex,
bool  txDetails = false 
)

Block description to JSON.

!!

!!

Definition at line 175 of file blockchain.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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 105 of file blockchain.cpp.

UniValue mempoolInfoToJSON ( )

Mempool information to JSON.

Definition at line 2254 of file blockchain.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

UniValue mempoolToJSON ( bool  fVerbose = false)

Mempool to JSON.

Definition at line 507 of file blockchain.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void RPCNotifyBlockChange ( bool  ibd,
const CBlockIndex  
)

Callback for when block tip changed.

Definition at line 308 of file blockchain.cpp.