aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/transaction_info.cpp
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-08-03 21:37:45 +0200
committerJaquee <jaquee.monero@gmail.com>2017-08-03 21:37:45 +0200
commita839a6fa8a01ade5672d8205bc5a2632a9992fc2 (patch)
treef488b794b798502a4ffea9cbfd91d97d74089a81 /src/wallet/api/transaction_info.cpp
parentMerge pull request #2159 (diff)
downloadmonero-a839a6fa8a01ade5672d8205bc5a2632a9992fc2.tar.xz
Wallet API: add tx unlock time
Diffstat (limited to 'src/wallet/api/transaction_info.cpp')
-rw-r--r--src/wallet/api/transaction_info.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/api/transaction_info.cpp b/src/wallet/api/transaction_info.cpp
index 79a8fe9b5..171272265 100644
--- a/src/wallet/api/transaction_info.cpp
+++ b/src/wallet/api/transaction_info.cpp
@@ -50,6 +50,7 @@ TransactionInfoImpl::TransactionInfoImpl()
, m_blockheight(0)
, m_timestamp(0)
, m_confirmations(0)
+ , m_unlock_time(0)
{
}
@@ -115,6 +116,11 @@ uint64_t TransactionInfoImpl::confirmations() const
return m_confirmations;
}
+uint64_t TransactionInfoImpl::unlockTime() const
+{
+ return m_unlock_time;
+}
+
} // namespace
namespace Bitmonero = Monero;