Line data Source code
1 : // Copyright (c) 2025 The Dash Core developers 2 : // Distributed under the MIT software license, see the accompanying 3 : // file COPYING or http://www.opensource.org/licenses/mit-license.php. 4 : 5 : #include <llmq/signhash.h> 6 : 7 : #include <hash.h> 8 : #include <serialize.h> 9 : 10 : #include <vector> 11 : 12 : namespace llmq { 13 : 14 628339 : SignHash::SignHash(Consensus::LLMQType llmqType, const uint256& quorumHash, const uint256& id, const uint256& msgHash) 15 314167 : { 16 314172 : CHashWriter h(SER_GETHASH, 0); 17 314172 : h << llmqType; 18 314172 : h << quorumHash; 19 314172 : h << id; 20 314172 : h << msgHash; 21 314172 : m_hash = h.GetHash(); 22 628339 : } 23 : 24 : } // namespace llmq