diff options
author | MacroFake <falke.marco@gmail.com> | 2022-06-10 12:02:12 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-07-20 15:34:36 +0200 |
commit | faf9accd662974a69390213fee1b5c6237846b42 (patch) | |
tree | 987a4d2f3ab4898e5eaac32b267174b9e48ee42a /src/hash.cpp | |
parent | faa5425629d35708326b255570c51139aef0c8c4 (diff) |
Use HashWriter where possible
Diffstat (limited to 'src/hash.cpp')
-rw-r--r-- | src/hash.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.cpp b/src/hash.cpp index f58b29e3ba..111b707964 100644 --- a/src/hash.cpp +++ b/src/hash.cpp @@ -86,9 +86,9 @@ uint256 SHA256Uint256(const uint256& input) return result; } -CHashWriter TaggedHash(const std::string& tag) +HashWriter TaggedHash(const std::string& tag) { - CHashWriter writer(SER_GETHASH, 0); + HashWriter writer{}; uint256 taghash; CSHA256().Write((const unsigned char*)tag.data(), tag.size()).Finalize(taghash.begin()); writer << taghash << taghash; |