aboutsummaryrefslogtreecommitdiff
path: root/src/util
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/util
parentfaa5425629d35708326b255570c51139aef0c8c4 (diff)
downloadbitcoin-faf9accd662974a69390213fee1b5c6237846b42.tar.xz
Use HashWriter where possible
Diffstat (limited to 'src/util')
-rw-r--r--src/util/message.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/message.cpp b/src/util/message.cpp
index d395c4b0bc..028251a5a8 100644
--- a/src/util/message.cpp
+++ b/src/util/message.cpp
@@ -74,7 +74,7 @@ bool MessageSign(
uint256 MessageHash(const std::string& message)
{
- CHashWriter hasher(SER_GETHASH, 0);
+ HashWriter hasher{};
hasher << MESSAGE_MAGIC << message;
return hasher.GetHash();