aboutsummaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-06-10 12:02:12 +0200
committerMacroFake <falke.marco@gmail.com>2022-07-20 15:34:36 +0200
commitfaf9accd662974a69390213fee1b5c6237846b42 (patch)
tree987a4d2f3ab4898e5eaac32b267174b9e48ee42a /src/node
parentfaa5425629d35708326b255570c51139aef0c8c4 (diff)
downloadbitcoin-faf9accd662974a69390213fee1b5c6237846b42.tar.xz
Use HashWriter where possible
Diffstat (limited to 'src/node')
-rw-r--r--src/node/blockstorage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/blockstorage.cpp b/src/node/blockstorage.cpp
index 103f4f0d7f..bac05f6be2 100644
--- a/src/node/blockstorage.cpp
+++ b/src/node/blockstorage.cpp
@@ -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();