aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/pending_transaction.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-11-05 20:53:45 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-11-05 21:19:08 +0000
commit97288a5ce21cedc6d040fe2f7b858e3a1736dc6e (patch)
treecc68df1e7d39fb253d5a5497361c07e169a6e740 /src/wallet/api/pending_transaction.cpp
parentMerge pull request #1272 (diff)
downloadmonero-97288a5ce21cedc6d040fe2f7b858e3a1736dc6e.tar.xz
wallet2_api: add API for tx notes
Diffstat (limited to 'src/wallet/api/pending_transaction.cpp')
-rw-r--r--src/wallet/api/pending_transaction.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wallet/api/pending_transaction.cpp b/src/wallet/api/pending_transaction.cpp
index 26ce9fc7e..e1a5e7674 100644
--- a/src/wallet/api/pending_transaction.cpp
+++ b/src/wallet/api/pending_transaction.cpp
@@ -69,6 +69,14 @@ string PendingTransactionImpl::errorString() const
return m_errorString;
}
+std::vector<std::string> PendingTransactionImpl::txid() const
+{
+ std::vector<std::string> txid;
+ for (const auto &pt: m_pending_tx)
+ txid.push_back(epee::string_tools::pod_to_hex(cryptonote::get_transaction_hash(pt.tx)));
+ return txid;
+}
+
bool PendingTransactionImpl::commit()
{