MCPcopy Create free account
hub / github.com/ElementsProject/elements / FlushUndoFile

Method FlushUndoFile

src/node/blockstorage.cpp:560–566  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

558}
559
560void BlockManager::FlushUndoFile(int block_file, bool finalize)
561{
562 FlatFilePos undo_pos_old(block_file, m_blockfile_info[block_file].nUndoSize);
563 if (!UndoFileSeq().Flush(undo_pos_old, finalize)) {
564 AbortNode("Flushing undo file to disk failed. This is likely the result of an I/O error.");
565 }
566}
567
568void BlockManager::FlushBlockFile(bool fFinalize, bool finalize_undo)
569{

Callers

nothing calls this directly

Calls 3

UndoFileSeqFunction · 0.85
AbortNodeFunction · 0.50
FlushMethod · 0.45

Tested by

no test coverage detected