mirror of
https://github.com/monero-project/monero.git
synced 2026-01-19 16:10:35 -08:00
wallet_api: PendingTransaction::txCount - number of split transactions
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user