mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
refactor: inline constant return value of BlockTreeDB::WriteBatchSync and BlockManager::WriteBlockIndexDB and BlockTreeDB::WriteFlag
This commit is contained in:
@@ -2851,9 +2851,7 @@ bool Chainstate::FlushStateToDisk(
|
||||
{
|
||||
LOG_TIME_MILLIS_WITH_CATEGORY("write block index to disk", BCLog::BENCH);
|
||||
|
||||
if (!m_blockman.WriteBlockIndexDB()) {
|
||||
return FatalError(m_chainman.GetNotifications(), state, _("Failed to write to block index database."));
|
||||
}
|
||||
m_blockman.WriteBlockIndexDB();
|
||||
}
|
||||
// Finally remove any pruned files
|
||||
if (fFlushForPrune) {
|
||||
|
||||
Reference in New Issue
Block a user