mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-05 05:14:51 +02:00
-BEGIN VERIFY SCRIPT- sed --in-place --regexp-extended \ 's;( 20[0-2][0-9])(-20[0-2][0-9])? The Bitcoin Core developers;\1-present The Bitcoin Core developers;g' \ $( git grep -l 'The Bitcoin Core developers' -- ':(exclude)COPYING' ':(exclude)src/ipc/libmultiprocess' ':(exclude)src/minisketch' ) -END VERIFY SCRIPT-
21 lines
715 B
C++
21 lines
715 B
C++
// Copyright (c) 2017-present The Bitcoin Core developers
|
|
// 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;
|
|
class TxValidationState;
|
|
|
|
bool CheckTransaction(const CTransaction& tx, TxValidationState& state);
|
|
|
|
#endif // BITCOIN_CONSENSUS_TX_CHECK_H
|