CreateUTXOSnapshot

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

Synopsis

Declared in <rpc/blockchain.h>

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

Return Value

a UniValue map containing metadata about the snapshot.

Parameters

NameDescription
nodeThe node context.
chainstateThe chainstate to snapshot.
afileThe output file to write the snapshot to.
pathThe final path for the snapshot file.
tmppathThe temporary path written to before renaming to path.