mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge e4bbfb2d49 into merged_master (Bitcoin PR bitcoin/bitcoin#27632)
This commit is contained in:
commit
38c95b75e9
9 changed files with 67 additions and 18 deletions
|
|
@ -586,7 +586,7 @@ void BlockManager::UnlinkPrunedFiles(const std::set<int>& setFilesToPrune) const
|
|||
const bool removed_blockfile{fs::remove(BlockFileSeq().FileName(pos), ec)};
|
||||
const bool removed_undofile{fs::remove(UndoFileSeq().FileName(pos), ec)};
|
||||
if (removed_blockfile || removed_undofile) {
|
||||
LogPrint(BCLog::BLOCKSTORE, "Prune: %s deleted blk/rev (%05u)\n", __func__, *it);
|
||||
LogPrint(BCLog::BLOCKSTORAGE, "Prune: %s deleted blk/rev (%05u)\n", __func__, *it);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -655,7 +655,7 @@ bool BlockManager::FindBlockPos(FlatFilePos& pos, unsigned int nAddSize, unsigne
|
|||
|
||||
if ((int)nFile != m_last_blockfile) {
|
||||
if (!fKnown) {
|
||||
LogPrint(BCLog::BLOCKSTORE, "Leaving block file %i: %s\n", m_last_blockfile, m_blockfile_info[m_last_blockfile].ToString());
|
||||
LogPrint(BCLog::BLOCKSTORAGE, "Leaving block file %i: %s\n", m_last_blockfile, m_blockfile_info[m_last_blockfile].ToString());
|
||||
}
|
||||
FlushBlockFile(!fKnown, finalize_undo);
|
||||
m_last_blockfile = nFile;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue