core: notify the txpool when transactions are relayed

This commit is contained in:
moneromooo-monero 2016-10-22 20:46:51 +01:00
parent f3c374fe08
commit 1e163666f3
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
5 changed files with 24 additions and 0 deletions

View file

@ -780,6 +780,9 @@ namespace cryptonote
template<class t_core>
bool t_cryptonote_protocol_handler<t_core>::relay_transactions(NOTIFY_NEW_TRANSACTIONS::request& arg, cryptonote_connection_context& exclude_context)
{
// no check for success, so tell core they're relayed unconditionally
for(auto tx_blob_it = arg.txs.begin(); tx_blob_it!=arg.txs.end(); ++tx_blob_it)
m_core.on_transaction_relayed(*tx_blob_it);
return relay_post_notify<NOTIFY_NEW_TRANSACTIONS>(arg, exclude_context);
}