Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
transaction.h File Reference
#include <attributes.h>
#include <consensus/amount.h>
#include <primitives/transaction.h>
#include <tinyformat.h>
#include <uint256.h>
#include <util/check.h>
#include <util/overloaded.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <wallet/types.h>
#include <bitset>
#include <cstdint>
#include <map>
#include <utility>
#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::TxStateBlockConflicted
 State of rejected transaction that conflicts with a confirmed block. More...
struct  wallet::TxStateInactive
struct  wallet::TxStateUnrecognized
struct  wallet::CachableAmount
 Cachable amount subdivided into avoid reuse and all balances. 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...
struct  wallet::WalletTxOrderComparator
class  wallet::WalletTXO

Namespaces

namespace  interfaces
namespace  wallet

Typedefs

using wallet::TxState = std::variant<TxStateConfirmed, TxStateInMempool, TxStateBlockConflicted, TxStateInactive, TxStateUnrecognized>
 All possible CWalletTx states.
using wallet::SyncTxState = std::variant<TxStateConfirmed, TxStateInMempool, TxStateInactive>
 Subset of states transaction sync logic is implemented to handle.
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.
static uint256 wallet::TxStateSerializedBlockHash (const TxState &state)
 Get TxState serialized block hash. Inverse of TxStateInterpretSerialized.
static int wallet::TxStateSerializedIndex (const TxState &state)
 Get TxState serialized block index. Inverse of TxStateInterpretSerialized.
template<typename T>
std::string wallet::TxStateString (const T &state)
 Return TxState or SyncTxState as a string for logging or debugging.