diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-11-08 00:05:19 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-11-09 00:13:18 +0300 |
commit | 4dcb74f97fa76bb9c7bbc3b4351a94f8565c2c93 (patch) | |
tree | b003c98149fd93e98c533a7cd27d718c36c79557 /src/wallet/api/pending_transaction.cpp | |
parent | Merge pull request #1308 (diff) | |
download | monero-4dcb74f97fa76bb9c7bbc3b4351a94f8565c2c93.tar.xz |
wallet_api: PendingTransaction::txCount - number of split transactions
Diffstat (limited to 'src/wallet/api/pending_transaction.cpp')
-rw-r--r-- | src/wallet/api/pending_transaction.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/wallet/api/pending_transaction.cpp b/src/wallet/api/pending_transaction.cpp index 80fb0b9a4..2521decea 100644 --- a/src/wallet/api/pending_transaction.cpp +++ b/src/wallet/api/pending_transaction.cpp @@ -80,8 +80,8 @@ std::vector<std::string> PendingTransactionImpl::txid() const bool PendingTransactionImpl::commit() { - LOG_PRINT_L0("m_pending_tx size: " << m_pending_tx.size()); - assert(m_pending_tx.size() == 1); + LOG_PRINT_L3("m_pending_tx size: " << m_pending_tx.size()); + try { while (!m_pending_tx.empty()) { auto & ptx = m_pending_tx.back(); @@ -142,5 +142,10 @@ uint64_t PendingTransactionImpl::fee() const return result; } +uint64_t PendingTransactionImpl::txCount() const +{ + return m_pending_tx.size(); +} + } |