mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 13:59:06 +01:00
7d989179f9
* evo: introduce IsTriviallyValid() to CheckPro*Tx objects * evo: relocate Check* and CheckPro*Tx logic to deterministicmns (move-only) * evo: relocate masternode state and chainlock sig logic to dedicated files (move-only) Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com> * evo: issue penalty for CheckInputsHash failure when validating ProUp*Tx Co-authored-by: PastaPastaPasta <PastaPastaPasta@users.noreply.github.com> Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
19 lines
572 B
C++
19 lines
572 B
C++
// Copyright (c) 2021 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";
|
|
|
|
bool CChainLockSig::IsNull() const {
|
|
return nHeight == -1 && blockHash == uint256();
|
|
}
|
|
|
|
std::string CChainLockSig::ToString() const {
|
|
return strprintf("CChainLockSig(nHeight=%d, blockHash=%s)", nHeight, blockHash.ToString());
|
|
}
|
|
}
|