Merge 510ac41eac into merged_master (Bitcoin PR bitcoin/bitcoin#25331)

This commit is contained in:
Byron Hambly 2024-10-18 13:02:21 +02:00
commit 28d35f619e
15 changed files with 68 additions and 56 deletions

View file

@ -482,7 +482,7 @@ static bool UndoWriteToDisk(const CBlockUndo& blockundo, FlatFilePos& pos, const
fileout << blockundo;
// calculate & write checksum
CHashWriter hasher(SER_GETHASH, PROTOCOL_VERSION);
HashWriter hasher{};
hasher << hashBlock;
hasher << blockundo;
fileout << hasher.GetHash();