From 97288a5ce21cedc6d040fe2f7b858e3a1736dc6e Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 5 Nov 2016 20:53:45 +0000 Subject: wallet2_api: add API for tx notes --- src/wallet/api/pending_transaction.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/wallet/api/pending_transaction.cpp') 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 PendingTransactionImpl::txid() const +{ + std::vector 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() { -- cgit v1.2.3