mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 05:23:01 +01:00
d64b7229cd
* chore: bump copyright in configure.ac * chore: bump copyright via copyright_header.py ran command `python3 contrib/devtools/copyright_header.py update .`
28 lines
829 B
C++
28 lines
829 B
C++
// Copyright (c) 2021-2022 The Dash Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#include <llmq/clsig.h>
|
|
#include <tinyformat.h>
|
|
|
|
namespace llmq {
|
|
const std::string CLSIG_REQUESTID_PREFIX = "clsig";
|
|
|
|
std::string CChainLockSig::ToString() const {
|
|
return strprintf("CChainLockSig(nHeight=%d, blockHash=%s)", nHeight, blockHash.ToString());
|
|
}
|
|
int32_t CChainLockSig::getHeight() const {
|
|
return nHeight;
|
|
}
|
|
const uint256& CChainLockSig::getBlockHash() const {
|
|
return blockHash;
|
|
}
|
|
const CBLSSignature& CChainLockSig::getSig() const {
|
|
return sig;
|
|
}
|
|
bool CChainLockSig::IsNull() const
|
|
{
|
|
return nHeight == -1 && blockHash == uint256();
|
|
}
|
|
}
|