Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactionrecord.h
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | public: | ||||
/** Status: can change with block chain update */ | /** Status: can change with block chain update */ | ||||
TransactionStatus status; | TransactionStatus status; | ||||
/** Whether the transaction was sent/received with a watch-only address */ | /** Whether the transaction was sent/received with a watch-only address */ | ||||
bool involvesWatchAddress; | bool involvesWatchAddress; | ||||
/** Return the unique identifier for this transaction (part) */ | /** Return the unique identifier for this transaction (part) */ | ||||
QString getTxID() const; | QString getTxHash() const; | ||||
/** Return the output index of the subtransaction */ | /** Return the output index of the subtransaction */ | ||||
int getOutputIndex() const; | int getOutputIndex() const; | ||||
/** Update status from core wallet tx. | /** Update status from core wallet tx. | ||||
*/ | */ | ||||
void updateStatus(const interfaces::WalletTxStatus &wtx, int numBlocks, | void updateStatus(const interfaces::WalletTxStatus &wtx, int numBlocks, | ||||
int64_t block_time); | int64_t block_time); | ||||
/** Return whether a status update is needed. | /** Return whether a status update is needed. | ||||
*/ | */ | ||||
bool statusUpdateNeeded(int numBlocks) const; | bool statusUpdateNeeded(int numBlocks) const; | ||||
}; | }; | ||||
#endif // BITCOIN_QT_TRANSACTIONRECORD_H | #endif // BITCOIN_QT_TRANSACTIONRECORD_H |