tx_check.h raw

   1  // Copyright (c) 2017-present The Bitcoin Core developers
   2  // Distributed under the MIT software license, see the accompanying
   3  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
   4  
   5  #ifndef BITCOIN_CONSENSUS_TX_CHECK_H
   6  #define BITCOIN_CONSENSUS_TX_CHECK_H
   7  
   8  /**
   9   * Context-independent transaction checking code that can be called outside the
  10   * bitcoin server and doesn't depend on chain or mempool state. Transaction
  11   * verification code that does call server functions or depend on server state
  12   * belongs in tx_verify.h/cpp instead.
  13   */
  14  
  15  class CTransaction;
  16  class TxValidationState;
  17  
  18  bool CheckTransaction(const CTransaction& tx, TxValidationState& state);
  19  
  20  #endif // BITCOIN_CONSENSUS_TX_CHECK_H
  21