aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/pending_transaction.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-11-08 22:45:54 +0200
committerRiccardo Spagni <ric@spagni.net>2016-11-08 22:45:54 +0200
commitaf2ceb29fa5c569714b12d97a206759d5184ee78 (patch)
tree42589e81c1e9422a8fd4a069ee22e7458407ecf0 /src/wallet/api/pending_transaction.cpp
parentMerge pull request #1297 (diff)
parentwallet2_api: add API for tx notes (diff)
downloadmonero-af2ceb29fa5c569714b12d97a206759d5184ee78.tar.xz
Merge pull request #1298
97288a5 wallet2_api: add API for tx notes (moneromooo-monero)
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()
{