Atomically write block-file info, the last-file marker, and block-index entries.
Declared in <node/blockstorage.h>
void
WriteBatchSync(
std::vector<std::pair<int, CBlockFileInfo const*>> const& fileInfo,
int nLastFile,
std::vector<CBlockIndex const*> const& blockinfo);
| Name | Description |
|---|---|
| fileInfo | Block-file info entries to write, each paired with its file number. |
| nLastFile | Index of the last block file in use. |
| blockinfo | Block-index entries to write. |