aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/transaction_info.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-01-13 14:37:12 -0500
committerRiccardo Spagni <ric@spagni.net>2017-01-13 14:37:12 -0500
commit2a2f02e375d0db176b998af779e447ffe871b774 (patch)
tree9232a5dc4fed0bcdf31fbde230aab986e3f2eea5 /src/wallet/api/transaction_info.cpp
parentMerge pull request #1558 (diff)
parentWallet2 + API: Callbacks for unconfirmed transfers (diff)
downloadmonero-2a2f02e375d0db176b998af779e447ffe871b774.tar.xz
Merge pull request #1559
db56a03f Wallet2 + API: Callbacks for unconfirmed transfers (Jaquee)
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;