5 #include <validation.h> 17 QList<TokenTransactionRecord> parts;
91 if (mi != wallet->
mapWallet.end() && (
GetAdjustedTime() - mi->second.nTimeReceived > 2 * 60) && mi->second.GetRequestCount() == 0)
void updateStatus(const CWallet *wallet, const CTokenTx &wtx)
Update status from core wallet tx.
std::string strReceiverAddress
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< 256, 256, boost::multiprecision::signed_magnitude, boost::multiprecision::unchecked, void >> s256
bool GetTokenTxDetails(const CTokenTx &wtx, uint256 &credit, uint256 &debit, std::string &tokenSymbol, uint8_t &decimals) const
UI model for a token transaction.
Confirmed, but waiting for the recommended number of confirmations.
std::string ToString() const
Not yet mined into a block.
int cur_num_blocks
Current number of blocks (to know whether cached status is still valid)
#define AssertLockHeld(cs)
bool countsForBalance
Token transaction counts towards available balance.
int Height() const
Return the maximal height in the chain.
static QList< TokenTransactionRecord > decomposeTransaction(const CWallet *wallet, const CTokenTx &wtx)
Decompose Token transaction into a record.
Have 6 or more confirmations (normal tx) or fully mature (mined tx)
dev::u256 uintTou256(const uint256 &in)
CChain chainActive
The currently-connected chain of blocks (protected by cs_main).
QString getTxID() const
Return the unique identifier for this transaction (part)
s256 u2s(u256 _u)
Interprets _u as a two's complement signed number and returns the resulting s256. ...
Normal (sent/received) token transactions.
int64_t GetAdjustedTime()
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
std::map< uint256, CWalletTx > mapWallet
TokenTransactionStatus status
Status: can change with block chain update.
bool statusUpdateNeeded()
Return whether a status update is needed.
static const int RecommendedNumConfirmations
Number of confirmation recommended for accepting a token transaction.