Bitcoin ABC  0.28.12
P2P Digital Currency
Namespaces | Functions
blockchain.h File Reference
#include <fs.h>
#include <streams.h>
#include <sync.h>
#include <validation.h>
#include <univalue.h>
#include <any>
Include dependency graph for blockchain.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 node
 

Functions

RPCHelpMan getblockchaininfo ()
 
double GetDifficulty (const CBlockIndex *blockindex)
 Get the required difficulty of the next block w/r/t the given block index. More...
 
void RPCNotifyBlockChange (const CBlockIndex *pindex)
 Callback for when block tip changed. More...
 
UniValue blockToJSON (node::BlockManager &blockman, const CBlock &block, const CBlockIndex *tip, const CBlockIndex *blockindex, bool txDetails=false) LOCKS_EXCLUDED(cs_main)
 Block description to JSON. More...
 
UniValue blockheaderToJSON (const CBlockIndex *tip, const CBlockIndex *blockindex) LOCKS_EXCLUDED(cs_main)
 Block header to JSON. More...
 
UniValue CreateUTXOSnapshot (node::NodeContext &node, Chainstate &chainstate, AutoFile &afile, const fs::path &path, const fs::path &tmppath)
 Helper to create UTXO snapshots given a chainstate and a file handle. More...
 

Function Documentation

◆ blockheaderToJSON()

UniValue blockheaderToJSON ( const CBlockIndex tip,
const CBlockIndex blockindex 
)

Block header to JSON.

Definition at line 131 of file blockchain.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ blockToJSON()

UniValue blockToJSON ( node::BlockManager blockman,
const CBlock block,
const CBlockIndex tip,
const CBlockIndex blockindex,
bool  txDetails = false 
)

Block description to JSON.

Definition at line 165 of file blockchain.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateUTXOSnapshot()

UniValue CreateUTXOSnapshot ( node::NodeContext node,
Chainstate chainstate,
AutoFile afile,
const fs::path path,
const fs::path tmppath 
)

Helper to create UTXO snapshots given a chainstate and a file handle.

Returns
a UniValue map containing metadata about the snapshot.

Definition at line 2637 of file blockchain.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getblockchaininfo()

RPCHelpMan getblockchaininfo ( )

Definition at line 1286 of file blockchain.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetDifficulty()

double GetDifficulty ( const CBlockIndex blockindex)

Get the required difficulty of the next block w/r/t the given block index.

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

Get the required difficulty of the next block w/r/t the given block index.

Definition at line 70 of file blockchain.cpp.

Here is the caller graph for this function:

◆ RPCNotifyBlockChange()

void RPCNotifyBlockChange ( const CBlockIndex pindex)

Callback for when block tip changed.

Definition at line 234 of file blockchain.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: