2019-12-30 06:39:22 -03:00
|
|
|
// Copyright (c) 2017-2019 The Bitcoin Core developers
|
2019-04-02 14:41:12 -03:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
#ifndef BITCOIN_CONSENSUS_TX_CHECK_H
|
|
|
|
#define BITCOIN_CONSENSUS_TX_CHECK_H
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Context-independent transaction checking code that can be called outside the
|
|
|
|
* bitcoin server and doesn't depend on chain or mempool state. Transaction
|
|
|
|
* verification code that does call server functions or depend on server state
|
|
|
|
* belongs in tx_verify.h/cpp instead.
|
|
|
|
*/
|
|
|
|
|
|
|
|
class CTransaction;
|
2019-10-24 12:35:42 -03:00
|
|
|
class TxValidationState;
|
2019-04-02 14:41:12 -03:00
|
|
|
|
2019-10-24 12:35:42 -03:00
|
|
|
bool CheckTransaction(const CTransaction& tx, TxValidationState& state);
|
2019-04-02 14:41:12 -03:00
|
|
|
|
|
|
|
#endif // BITCOIN_CONSENSUS_TX_CHECK_H
|