aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/transaction_info.cpp
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-04-22 13:33:09 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-04-22 13:33:09 +0300
commit53a97bdcd381342bc7d738946a628654a2261a52 (patch)
tree9f139ae6efa26fa5a03a1eb35df86c8ba02aec39 /src/wallet/api/transaction_info.cpp
parentWallet API : transaction history in progress (diff)
downloadmonero-53a97bdcd381342bc7d738946a628654a2261a52.tar.xz
Wallet API: transaction history in progress
Diffstat (limited to 'src/wallet/api/transaction_info.cpp')
-rw-r--r--src/wallet/api/transaction_info.cpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/wallet/api/transaction_info.cpp b/src/wallet/api/transaction_info.cpp
index c28c52355..578b84832 100644
--- a/src/wallet/api/transaction_info.cpp
+++ b/src/wallet/api/transaction_info.cpp
@@ -62,37 +62,42 @@ int TransactionInfoImpl::direction() const
bool TransactionInfoImpl::isHold() const
{
- return false;
+ return m_hold;
}
bool TransactionInfoImpl::isFailed() const
{
- return false;
+ return m_failed;
}
uint64_t TransactionInfoImpl::amount() const
{
- return 0;
+ return m_amount;
}
uint64_t TransactionInfoImpl::fee() const
{
- return 0;
+ return m_fee;
+}
+
+uint64_t TransactionInfoImpl::blockHeight() const
+{
+ return m_blockheight;
}
string TransactionInfoImpl::hash() const
{
- return "";
+ return m_hash;
}
std::time_t TransactionInfoImpl::timestamp() const
{
- return std::time_t(0);
+ return m_timestamp;
}
string TransactionInfoImpl::paymentId() const
{
- return "";
+ return m_paymentid;
}
} // namespace