mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Further reduce header dependencies
This commit removes the dependency of serialize.h on PROTOCOL_VERSION, and makes this parameter required instead of implicit. This is much saner, as it makes the places where changing a version number can have an influence obvious.
This commit is contained in:
parent
ccd65d4261
commit
6b6aaa1698
26 changed files with 101 additions and 105 deletions
|
|
@ -1092,7 +1092,7 @@ uint256 SignatureHash(CScript scriptCode, const CTransaction& txTo, unsigned int
|
|||
}
|
||||
|
||||
// Serialize and hash
|
||||
CDataStream ss(SER_GETHASH);
|
||||
CDataStream ss(SER_GETHASH, 0);
|
||||
ss.reserve(10000);
|
||||
ss << txTmp << nHashType;
|
||||
return Hash(ss.begin(), ss.end());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue