From a3b41ab90383887bbb3c7137d005a072b28df6c2 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Sat, 10 Jun 2023 23:14:28 +0300 Subject: [PATCH] fix: pass correct params into CHashWriter --- src/evo/specialtx.cpp | 2 +- src/llmq/utils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evo/specialtx.cpp b/src/evo/specialtx.cpp index 4dd9c0203c3e01..6a1820dd9e21e9 100644 --- a/src/evo/specialtx.cpp +++ b/src/evo/specialtx.cpp @@ -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; } diff --git a/src/llmq/utils.cpp b/src/llmq/utils.cpp index 35dd13dcc21663..1dc4938083ca79 100644 --- a/src/llmq/utils.cpp +++ b/src/llmq/utils.cpp @@ -628,7 +628,7 @@ uint256 BuildCommitmentHash(Consensus::LLMQType llmqType, const uint256& blockHa const std::vector& validMembers, const CBLSPublicKey& pubKey, const uint256& vvecHash) { - CHashWriter hw(SER_NETWORK, 0); + CHashWriter hw(SER_GETHASH, 0); hw << llmqType; hw << blockHash; hw << DYNBITSET(validMembers);