PRCYCoin  2.0.0.7rc1
P2P Digital Currency
tx_verify.h
Go to the documentation of this file.
1 // Copyright (c) 2017-2017 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_VERIFY_H
6 #define BITCOIN_CONSENSUS_TX_VERIFY_H
7 
8 #include <stdint.h>
9 #include <vector>
10 
11 class CBlockIndex;
12 class CCoinsViewCache;
13 class CTransaction;
14 class CValidationState;
15 
19 bool CheckTransaction(const CTransaction& tx, bool fRejectBadUTXO, CValidationState& state);
20 
26 unsigned int GetLegacySigOpCount(const CTransaction& tx);
27 
32 bool IsFinalTx(const CTransaction& tx, int nBlockHeight = 0, int64_t nBlockTime = 0);
33 
34 #endif // BITCOIN_CONSENSUS_TX_VERIFY_H
CheckTransaction
bool CheckTransaction(const CTransaction &tx, bool fRejectBadUTXO, CValidationState &state)
Transaction validation functions.
Definition: tx_verify.cpp:42
IsFinalTx
bool IsFinalTx(const CTransaction &tx, int nBlockHeight=0, int64_t nBlockTime=0)
Check if transaction is final and can be included in a block with the specified height and time.
Definition: tx_verify.cpp:12
CTransaction
The basic transaction that is broadcasted on the network and contained in blocks.
Definition: transaction.h:269
CCoinsViewCache
CCoinsView that adds a memory cache for transactions to another CCoinsView.
Definition: coins.h:414
CBlockIndex
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition: chain.h:162
CValidationState
Capture information about block/transaction validation.
Definition: validation.h:23
GetLegacySigOpCount
unsigned int GetLegacySigOpCount(const CTransaction &tx)
Count ECDSA signature operations the old-fashioned (pre-0.6) way.
Definition: tx_verify.cpp:30