Bitcoin Core  22.99.0
P2P Digital Currency
Classes | Namespaces | Typedefs | Functions
transaction.h File Reference
#include <consensus/amount.h>
#include <primitives/transaction.h>
#include <serialize.h>
#include <wallet/ismine.h>
#include <threadsafety.h>
#include <tinyformat.h>
#include <util/overloaded.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <list>
#include <variant>
#include <vector>
Include dependency graph for transaction.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wallet::TxStateConfirmed
 State of transaction confirmed in a block. More...
 
struct  wallet::TxStateInMempool
 State of transaction added to mempool. More...
 
struct  wallet::TxStateConflicted
 State of rejected transaction that conflicts with a confirmed block. More...
 
struct  wallet::TxStateInactive
 State of transaction not confirmed or conflicting with a known block and not in the mempool. More...
 
struct  wallet::TxStateUnrecognized
 State of transaction loaded in an unrecognized state with unexpected hash or index values. More...
 
class  wallet::CMerkleTx
 Legacy class used for deserializing vtxPrev for backwards compatibility. More...
 
class  wallet::CWalletTx
 A transaction with a bunch of additional info that only the owner cares about. More...
 

Namespaces

 wallet
 

Typedefs

using wallet::TxState = std::variant< TxStateConfirmed, TxStateInMempool, TxStateConflicted, TxStateInactive, TxStateUnrecognized >
 All possible CWalletTx states. More...
 
using wallet::SyncTxState = std::variant< TxStateConfirmed, TxStateInMempool, TxStateInactive >
 Subset of states transaction sync logic is implemented to handle. More...
 
typedef std::map< std::string, std::string > wallet::mapValue_t
 

Functions

static TxState wallet::TxStateInterpretSerialized (TxStateUnrecognized data)
 Try to interpret deserialized TxStateUnrecognized data as a recognized state. More...
 
static uint256 wallet::TxStateSerializedBlockHash (const TxState &state)
 Get TxState serialized block hash. Inverse of TxStateInterpretSerialized. More...
 
static int wallet::TxStateSerializedIndex (const TxState &state)
 Get TxState serialized block index. Inverse of TxStateInterpretSerialized. More...