Skip to content

Commit

Permalink
fix: pass correct params into CHashWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Jun 10, 2023
1 parent c51ba63 commit a3b41ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/evo/specialtx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/llmq/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a3b41ab

Please sign in to comment.