#ifndef TRANSACTIONRECORD_H
#define TRANSACTIONRECORD_H
-#include "main.h"
+#include "uint256.h"
#include <QList>
+class CWallet;
+class CWalletTx;
+
class TransactionStatus
{
public:
/* Decompose CWallet transaction to model transaction records.
*/
static bool showTransaction(const CWalletTx &wtx);
- static QList<TransactionRecord> decomposeTransaction(const CWalletTx &wtx);
+ static QList<TransactionRecord> decomposeTransaction(const CWallet *wallet, const CWalletTx &wtx);
/* Fixed */
uint256 hash;
/* Status: can change with block chain update */
TransactionStatus status;
+ /* Return the unique identifier for this transaction (part) */
+ std::string getTxID();
+
/* Update status from wallet tx.
*/
void updateStatus(const CWalletTx &wtx);