mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
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.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
uint256 CBlockHeader::GetHash() const
|
||||
{
|
||||
return SerializeHash(*this);
|
||||
return (CHashWriter{PROTOCOL_VERSION} << *this).GetHash();
|
||||
}
|
||||
|
||||
std::string CBlock::ToString() const
|
||||
|
||||
Reference in New Issue
Block a user