mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Use CHashWriter also in SignatureHash(), and for message signing
This commit is contained in:
parent
485d667748
commit
8980a50924
2 changed files with 6 additions and 7 deletions
|
|
@ -1117,10 +1117,9 @@ uint256 SignatureHash(CScript scriptCode, const CTransaction& txTo, unsigned int
|
|||
}
|
||||
|
||||
// Serialize and hash
|
||||
CDataStream ss(SER_GETHASH, 0);
|
||||
ss.reserve(10000);
|
||||
CHashWriter ss(SER_GETHASH, 0);
|
||||
ss << txTmp << nHashType;
|
||||
return Hash(ss.begin(), ss.end());
|
||||
return ss.GetHash();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue