mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge d4cc0c6845 into merged_master (Bitcoin PR bitcoin/bitcoin#30750)
This commit is contained in:
commit
a51624f2ed
45 changed files with 367 additions and 375 deletions
|
|
@ -454,7 +454,7 @@ void BlockManager::FindFilesToPrune(
|
|||
}
|
||||
}
|
||||
|
||||
LogPrint(BCLog::PRUNE, "[%s] target=%dMiB actual=%dMiB diff=%dMiB min_height=%d max_prune_height=%d removed %d blk/rev pairs\n",
|
||||
LogDebug(BCLog::PRUNE, "[%s] target=%dMiB actual=%dMiB diff=%dMiB min_height=%d max_prune_height=%d removed %d blk/rev pairs\n",
|
||||
chain.GetRole(), target / 1024 / 1024, nCurrentUsage / 1024 / 1024,
|
||||
(int64_t(target) - int64_t(nCurrentUsage)) / 1024 / 1024,
|
||||
min_block_to_prune, last_block_can_prune, count);
|
||||
|
|
@ -905,7 +905,7 @@ void BlockManager::UnlinkPrunedFiles(const std::set<int>& setFilesToPrune) const
|
|||
const bool removed_blockfile{fs::remove(m_block_file_seq.FileName(pos), ec)};
|
||||
const bool removed_undofile{fs::remove(m_undo_file_seq.FileName(pos), ec)};
|
||||
if (removed_blockfile || removed_undofile) {
|
||||
LogPrint(BCLog::BLOCKSTORAGE, "Prune: %s deleted blk/rev (%05u)\n", __func__, *it);
|
||||
LogDebug(BCLog::BLOCKSTORAGE, "Prune: %s deleted blk/rev (%05u)\n", __func__, *it);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -937,7 +937,7 @@ FlatFilePos BlockManager::FindNextBlockPos(unsigned int nAddSize, unsigned int n
|
|||
assert(chain_type == BlockfileType::ASSUMED);
|
||||
const auto new_cursor = BlockfileCursor{this->MaxBlockfileNum() + 1};
|
||||
m_blockfile_cursors[chain_type] = new_cursor;
|
||||
LogPrint(BCLog::BLOCKSTORAGE, "[%s] initializing blockfile cursor to %s\n", chain_type, new_cursor);
|
||||
LogDebug(BCLog::BLOCKSTORAGE, "[%s] initializing blockfile cursor to %s\n", chain_type, new_cursor);
|
||||
}
|
||||
const int last_blockfile = m_blockfile_cursors[chain_type]->file_num;
|
||||
|
||||
|
|
@ -980,7 +980,7 @@ FlatFilePos BlockManager::FindNextBlockPos(unsigned int nAddSize, unsigned int n
|
|||
pos.nPos = m_blockfile_info[nFile].nSize;
|
||||
|
||||
if (nFile != last_blockfile) {
|
||||
LogPrint(BCLog::BLOCKSTORAGE, "Leaving block file %i: %s (onto %i) (height %i)\n",
|
||||
LogDebug(BCLog::BLOCKSTORAGE, "Leaving block file %i: %s (onto %i) (height %i)\n",
|
||||
last_blockfile, m_blockfile_info[last_blockfile].ToString(), nFile, nHeight);
|
||||
|
||||
// Do not propagate the return code. The flush concerns a previous block
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue