tx_pool: set relayed flag on relay

This commit is contained in:
moneromooo-monero 2016-10-22 20:46:19 +01:00
parent 0b93dd39db
commit f3c374fe08
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -387,9 +387,12 @@ namespace cryptonote
{ {
auto i = m_transactions.find(it->first); auto i = m_transactions.find(it->first);
if (i != m_transactions.end()) if (i != m_transactions.end())
{
i->second.relayed = true;
i->second.last_relayed_time = now; i->second.last_relayed_time = now;
} }
} }
}
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
size_t tx_memory_pool::get_transactions_count() const size_t tx_memory_pool::get_transactions_count() const
{ {