mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
fix: pass correct params into CHashWriter
This commit is contained in:
parent
a760e33236
commit
62540743ef
@ -9,7 +9,7 @@
|
||||
|
||||
uint256 CalcTxInputsHash(const CTransaction& tx)
|
||||
{
|
||||
CHashWriter hw(CLIENT_VERSION, SER_GETHASH);
|
||||
CHashWriter hw(SER_GETHASH, CLIENT_VERSION);
|
||||
for (const auto& in : tx.vin) {
|
||||
hw << in.prevout;
|
||||
}
|
||||
|
@ -628,7 +628,7 @@ uint256 BuildCommitmentHash(Consensus::LLMQType llmqType, const uint256& blockHa
|
||||
const std::vector<bool>& validMembers, const CBLSPublicKey& pubKey,
|
||||
const uint256& vvecHash)
|
||||
{
|
||||
CHashWriter hw(SER_NETWORK, 0);
|
||||
CHashWriter hw(SER_GETHASH, 0);
|
||||
hw << llmqType;
|
||||
hw << blockHash;
|
||||
hw << DYNBITSET(validMembers);
|
||||
|
Loading…
Reference in New Issue
Block a user