[#kernel-BlockTreeDB-WriteBatchSync] = xref:kernel.adoc[kernel]::xref:kernel/BlockTreeDB.adoc[BlockTreeDB]::WriteBatchSync :relfileprefix: ../../ :mrdocs: Atomically write block‐file info, the last‐file marker, and block‐index entries. == Synopsis Declared in `<node/blockstorage.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void WriteBatchSync( std::vector<std::pair<int, CBlockFileInfo const*>> const& fileInfo, int nLastFile, std::vector<CBlockIndex const*> const& blockinfo); ---- == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#