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 2 : SignHash::SignHash(Consensus::LLMQType llmqType, const uint256& quorumHash, const uint256& id, const uint256& msgHash) 15 1 : { 16 1 : CHashWriter h(SER_GETHASH, 0); 17 1 : h << llmqType; 18 1 : h << quorumHash; 19 1 : h << id; 20 1 : h << msgHash; 21 1 : m_hash = h.GetHash(); 22 2 : } 23 : 24 : } // namespace llmq