mirror of
https://github.com/dogecoin/dogecoin.git
synced 2026-01-31 10:30:52 +00:00
Optimize GetWitnessHash() for non-segwit transactions
Github-Pull: #9912 Rebased-From: 02c57b521a9e7afd4416cd027a8b397f202b08a8
This commit is contained in:
parent
e9611d10b6
commit
fc3d7db580
@ -69,6 +69,9 @@ uint256 CTransaction::ComputeHash() const
|
||||
|
||||
uint256 CTransaction::GetWitnessHash() const
|
||||
{
|
||||
if (!HasWitness()) {
|
||||
return GetHash();
|
||||
}
|
||||
return SerializeHash(*this, SER_GETHASH, 0);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user