mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 15:46:08 -04:00
core: notify the txpool when transactions are relayed
This commit is contained in:
parent
f3c374fe08
commit
1e163666f3
5 changed files with 24 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue