[bitcoin/bitcoin] scripted-diff: Simplify common case of CHashWriter and drop SER_GETHASH & SerializeHash (#13462)

Empact commented on this pull request.

> @@ -12,7 +12,7 @@

uint256 CBlockHeader::GetHash() const
{
— return SerializeHash(*this);
+ return (CHashWriter(PROTOCOL_VERSION) << *this).GetHash(); Note this was the only call that relied on the default `SerializeHash` `nVersion` value.

Добавить комментарий