Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/finaltx.cpp
// Copyright (c) 2017 The Bitcoin developers | // Copyright (c) 2017 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 "chainparams.h" | #include "chainparams.h" | ||||
#include "config.h" | #include "config.h" | ||||
#include "consensus/validation.h" | #include "consensus/validation.h" | ||||
#include "defaults.h" | |||||
#include "primitives/transaction.h" | #include "primitives/transaction.h" | ||||
#include "validation.h" | #include "validation.h" | ||||
bool CheckFinalTx(const CTransaction &tx, int flags = -1) { | bool CheckFinalTx(const CTransaction &tx, int flags = -1) { | ||||
auto &config = GetConfig(); | auto &config = GetConfig(); | ||||
CValidationState state; | CValidationState state; | ||||
return ContextualCheckTransactionForCurrentBlock(config, tx, state, flags); | return ContextualCheckTransactionForCurrentBlock(config, tx, state, flags); | ||||
} | } |