Helper to create UTXO snapshots given a chainstate and a file handle.
Declared in <rpc/blockchain.h>
UniValue
CreateUTXOSnapshot(
node::NodeContext& node,
Chainstate& chainstate,
AutoFile&& afile,
fs::path const& path,
fs::path const& tmppath);
a UniValue map containing metadata about the snapshot.
| Name | Description |
|---|---|
| node | The node context. |
| chainstate | The chainstate to snapshot. |
| afile | The output file to write the snapshot to. |
| path | The final path for the snapshot file. |
| tmppath | The temporary path written to before renaming to path. |