Skip to content

Commit

Permalink
fix: change tx hashing back to CHashWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
HashEngineering committed Oct 11, 2023
1 parent b87d968 commit a6a4248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/primitives/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ CMutableTransaction::CMutableTransaction(const CTransaction& tx) : vin(tx.vin),

uint256 CMutableTransaction::GetHash() const
{
return (XCoin::CGroestlHashWriter{SERIALIZE_TRANSACTION_NO_WITNESS} << *this).GetHash();
return (CHashWriter{SERIALIZE_TRANSACTION_NO_WITNESS} << *this).GetHash();
}

uint256 CTransaction::ComputeHash() const
{
return (XCoin::CGroestlHashWriter{SERIALIZE_TRANSACTION_NO_WITNESS} << *this).GetHash();
return (CHashWriter{SERIALIZE_TRANSACTION_NO_WITNESS} << *this).GetHash();
}

uint256 CTransaction::ComputeWitnessHash() const
Expand Down

0 comments on commit a6a4248

Please sign in to comment.