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.
UniValue CreateUTXOSnapshot(node::NodeContext &node, Chainstate &chainstate, AutoFile &afile, const fs::path &path, const fs::path &tmppath)
Test-only helper to create UTXO snapshots given a chainstate and a file handle.
RecursiveMutex cs_main
Mutex to guard access to validation specific variables, such as reading or changing the chainstate.