Merge 9f1aa88d4d into merged_master (Bitcoin PR bitcoin/bitcoin#30884)

This commit is contained in:
ivanlele 2026-03-26 12:56:47 +00:00
commit 3693c70628
No known key found for this signature in database
12 changed files with 75 additions and 49 deletions

View file

@ -776,7 +776,7 @@ bool BlockManager::UndoWriteToDisk(const CBlockUndo& blockundo, FlatFilePos& pos
fileout << GetParams().MessageStart() << nSize;
// Write undo data
long fileOutPos = ftell(fileout.Get());
long fileOutPos = fileout.tell();
if (fileOutPos < 0) {
LogError("%s: ftell failed\n", __func__);
return false;
@ -1074,7 +1074,7 @@ bool BlockManager::WriteBlockToDisk(const CBlock& block, FlatFilePos& pos) const
fileout << GetParams().MessageStart() << nSize;
// Write block
long fileOutPos = ftell(fileout.Get());
long fileOutPos = fileout.tell();
if (fileOutPos < 0) {
LogError("%s: ftell failed\n", __func__);
return false;