1 // Copyright (c) 2017-2019 The Limenka 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 LIMENKA_CONSENSUS_TX_CHECK_H
6 #define LIMENKA_CONSENSUS_TX_CHECK_H
7 8 /**
9 * Context-independent transaction checking code that can be called outside the
10 * limenka 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 // LIMENKA_CONSENSUS_TX_CHECK_H
21