aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/transaction_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallet/api/transaction_info.h')
-rw-r--r--src/wallet/api/transaction_info.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/wallet/api/transaction_info.h b/src/wallet/api/transaction_info.h
index 3aae19a64..a06bc367e 100644
--- a/src/wallet/api/transaction_info.h
+++ b/src/wallet/api/transaction_info.h
@@ -41,12 +41,17 @@ class TransactionInfoImpl : public TransactionInfo
public:
TransactionInfoImpl();
~TransactionInfoImpl();
+ //! in/out
virtual int direction() const;
+ //! true if hold
virtual bool isHold() const;
virtual bool isFailed() const;
virtual uint64_t amount() const;
+ //! always 0 for incoming txes
virtual uint64_t fee() const;
- virtual std::string address() const;
+ virtual uint64_t blockHeight() const;
+
+ virtual std::string hash() const;
virtual std::time_t timestamp() const;
virtual std::string paymentId() const;
@@ -56,8 +61,8 @@ private:
bool m_failed;
uint64_t m_amount;
uint64_t m_fee;
- uint64_t b_blockheight;
- std::string m_address;
+ uint64_t m_blockheight;
+ std::string m_hash;
std::time_t m_timestamp;
std::string m_paymentid;