Use HashWriter where possible

This commit is contained in:
MacroFake
2022-06-10 12:02:12 +02:00
parent faa5425629
commit faf9accd66
14 changed files with 44 additions and 44 deletions

View File

@@ -471,7 +471,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();