diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-09-11 15:47:52 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-09-19 16:38:08 +0200 |
commit | fa72f09d6ff8ee204f331a69d3f5e825223c9e11 (patch) | |
tree | d45356514481c7a21d7fe4c87681a85bfdd86347 /src/primitives/block.cpp | |
parent | fa4a9c0f4334678fb80358ead667807bf2a0a153 (diff) | |
download | bitcoin-fa72f09d6ff8ee204f331a69d3f5e825223c9e11.tar.xz |
Remove CHashWriter type
The type is only ever set, but never read via GetType(), so remove it.
Also, remove SerializeHash to avoid silent merge conflicts and use the
already existing GetHash() boilerplate consistently.
Diffstat (limited to 'src/primitives/block.cpp')
-rw-r--r-- | src/primitives/block.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/primitives/block.cpp b/src/primitives/block.cpp index 50a30cb511..3d21708820 100644 --- a/src/primitives/block.cpp +++ b/src/primitives/block.cpp @@ -10,7 +10,7 @@ uint256 CBlockHeader::GetHash() const { - return SerializeHash(*this); + return (CHashWriter{PROTOCOL_VERSION} << *this).GetHash(); } std::string CBlock::ToString() const |