Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/tx_verify.cpp
// Copyright (c) 2018 The Bitcoin developers | // Copyright (c) 2018 The Bitcoin developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "tx_verify.h" | #include <consensus/tx_verify.h> | ||||
#include "chain.h" | #include <chain.h> | ||||
#include "coins.h" | #include <coins.h> | ||||
#include "consensus/activation.h" | #include <consensus/activation.h> | ||||
#include "consensus/consensus.h" | #include <consensus/consensus.h> | ||||
#include "consensus/validation.h" | #include <consensus/validation.h> | ||||
#include "primitives/transaction.h" | #include <primitives/transaction.h> | ||||
#include "script/script_flags.h" | #include <script/script_flags.h> | ||||
#include "utilmoneystr.h" // For FormatMoney | #include <utilmoneystr.h> // For FormatMoney | ||||
#include "version.h" // For PROTOCOL_VERSION | #include <version.h> // For PROTOCOL_VERSION | ||||
static bool IsFinalTx(const CTransaction &tx, int nBlockHeight, | static bool IsFinalTx(const CTransaction &tx, int nBlockHeight, | ||||
int64_t nBlockTime) { | int64_t nBlockTime) { | ||||
if (tx.nLockTime == 0) { | if (tx.nLockTime == 0) { | ||||
return true; | return true; | ||||
} | } | ||||
int64_t lockTime = tx.nLockTime; | int64_t lockTime = tx.nLockTime; | ||||
▲ Show 20 Lines • Show All 309 Lines • Show Last 20 Lines |