32 QList<TransactionRecord> parts;
36 int64_t nNet = nCredit - nDebit;
38 std::map<std::string, std::string> mapValue = wtx.
mapValue;
51 sub.
idx = parts.size();
77 bool fAllFromMe =
true;
78 BOOST_FOREACH(
const CTxIn& txin, wtx.
vin)
79 fAllFromMe = fAllFromMe && wallet->
IsMine(txin);
83 fAllToMe = fAllToMe && wallet->
IsMine(txout);
85 if (fAllFromMe && fAllToMe)
91 -(nDebit - nChange), nCredit - nChange));
100 for (
unsigned int nOut = 0; nOut < wtx.
vout.size(); nOut++)
104 sub.
idx = parts.size();
127 int64_t nValue = txout.
nValue;
160 pindex = (*mi).second;
164 (pindex ? pindex->
nHeight : std::numeric_limits<int>::max()),
bool IsFinalTx(const CTransaction &tx, int nBlockHeight, int64_t nBlockTime)
int64_t GetValueOut() const
Confirmed, but waiting for the recommended number of confirmations.
Transaction not yet final, waiting for block.
int idx
Subtransaction index, for sort key.
bool IsMine(const CTxIn &txin) const
int64_t GetChange() const
QString getTxID() const
Return the unique identifier for this transaction (part)
Not sent to any other nodes.
Generated (mined) transactions.
Have 6 or more confirmations (normal tx) or fully mature (mined tx)
std::string sortKey
Sorting key based on status.
Not yet mined into a block.
static bool showTransaction(const CWalletTx &wtx)
Decompose CWallet transaction to model transaction records.
base58-encoded Bitcoin addresses.
CChain chainActive
The currently-connected chain of blocks.
#define AssertLockHeld(cs)
int GetBlocksToMaturity() const
int GetRequestCount() const
int Height() const
Return the maximal height in the chain.
bool IsInMainChain() const
UI model for a transaction.
int64_t GetAdjustedTime()
TransactionStatus status
Status: can change with block chain update.
static QList< TransactionRecord > decomposeTransaction(const CWallet *wallet, const CWalletTx &wtx)
An input of a transaction.
std::vector< CTxOut > vout
static QString formatSubTxId(const uint256 &hash, int vout)
Format subtransaction id.
bool countsForBalance
Transaction counts towards available balance.
void updateStatus(const CWalletTx &wtx)
Update status from core wallet tx.
std::string ToString() const
An output of a transaction.
int cur_num_blocks
Current number of blocks (to know whether cached status is still valid)
Normal (sent/received) transactions.
A transaction with a bunch of additional info that only the owner cares about.
int64_t GetTxTime() const
Conflicts with other transaction or mempool.
The block chain is a tree shaped structure starting with the genesis block at the root...
std::string ToString() const
static const unsigned int LOCKTIME_THRESHOLD
Threshold for nLockTime: below this value it is interpreted as block number, otherwise as UNIX timest...
bool IsMine(const CKeyStore &keystore, const CTxDestination &dest)
bool ExtractDestination(const CScript &scriptPubKey, CTxDestination &addressRet)
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
int GetDepthInMainChain(CBlockIndex *&pindexRet) const
bool statusUpdateNeeded()
Return whether a status update is needed.
boost::variant< CNoDestination, CKeyID, CScriptID > CTxDestination
A txout script template with a specific destination.
unsigned int nTimeReceived
qint64 open_for
Timestamp if status==OpenUntilDate, otherwise number of additional blocks that need to be mined befor...
map< uint256, CBlockIndex * > mapBlockIndex
int64_t GetCredit(bool fUseCache=true) const
static const int RecommendedNumConfirmations
Number of confirmation recommended for accepting a transaction.
Transaction will likely not mature because no nodes have confirmed.