mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
blockstorage: Let FlushChainstateBlockFile return true in case of missing cursor
Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
This commit is contained in:
parent
73700fb554
commit
82e48d20f1
1 changed files with 2 additions and 1 deletions
|
@ -767,7 +767,8 @@ bool BlockManager::FlushChainstateBlockFile(int tip_height)
|
||||||
if (cursor) {
|
if (cursor) {
|
||||||
return FlushBlockFile(cursor->file_num, /*fFinalize=*/false, /*finalize_undo=*/false);
|
return FlushBlockFile(cursor->file_num, /*fFinalize=*/false, /*finalize_undo=*/false);
|
||||||
}
|
}
|
||||||
return false;
|
// No need to log warnings in this case.
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t BlockManager::CalculateCurrentUsage()
|
uint64_t BlockManager::CalculateCurrentUsage()
|
||||||
|
|
Loading…
Add table
Reference in a new issue