aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/transaction_info.cpp
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-01-12 18:23:23 +0100
committerJaquee <jaquee.monero@gmail.com>2017-01-12 18:25:34 +0100
commitdb56a03ff2820f85da21c3c8fc4cc60e64c5b88d (patch)
treeb6e8c3a583171deb841ab0366f977be833bcc8e4 /src/wallet/api/transaction_info.cpp
parentMerge pull request #1542 (diff)
downloadmonero-db56a03ff2820f85da21c3c8fc4cc60e64c5b88d.tar.xz
Wallet2 + API: Callbacks for unconfirmed transfers
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 8d26f2035..576ae8532 100644
--- a/src/wallet/api/transaction_info.cpp
+++ b/src/wallet/api/transaction_info.cpp
@@ -49,6 +49,7 @@ TransactionInfoImpl::TransactionInfoImpl()
, m_fee(0)
, m_blockheight(0)
, m_timestamp(0)
+ , m_confirmations(0)
{
}
@@ -109,6 +110,11 @@ const std::vector<TransactionInfo::Transfer> &TransactionInfoImpl::transfers() c
return m_transfers;
}
+uint64_t TransactionInfoImpl::confirmations() const
+{
+ return m_confirmations;
+}
+
} // namespace
namespace Bitmonero = Monero;