mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +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)
|
uint256 CalcTxInputsHash(const CTransaction& tx)
|
||||||
{
|
{
|
||||||
CHashWriter hw(CLIENT_VERSION, SER_GETHASH);
|
CHashWriter hw(SER_GETHASH, CLIENT_VERSION);
|
||||||
for (const auto& in : tx.vin) {
|
for (const auto& in : tx.vin) {
|
||||||
hw << in.prevout;
|
hw << in.prevout;
|
||||||
}
|
}
|
||||||
|
@ -628,7 +628,7 @@ uint256 BuildCommitmentHash(Consensus::LLMQType llmqType, const uint256& blockHa
|
|||||||
const std::vector<bool>& validMembers, const CBLSPublicKey& pubKey,
|
const std::vector<bool>& validMembers, const CBLSPublicKey& pubKey,
|
||||||
const uint256& vvecHash)
|
const uint256& vvecHash)
|
||||||
{
|
{
|
||||||
CHashWriter hw(SER_NETWORK, 0);
|
CHashWriter hw(SER_GETHASH, 0);
|
||||||
hw << llmqType;
|
hw << llmqType;
|
||||||
hw << blockHash;
|
hw << blockHash;
|
||||||
hw << DYNBITSET(validMembers);
|
hw << DYNBITSET(validMembers);
|
||||||
|
Loading…
Reference in New Issue
Block a user