dash/src/llmq/clsig.cpp
PastaPastaPasta d64b7229cd
chore: bump copyrights (#4873)
* chore: bump copyright in configure.ac

* chore: bump copyright via copyright_header.py

ran command `python3 contrib/devtools/copyright_header.py update .`
2022-06-08 02:36:46 +03:00

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();
}
}