mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 07:28:54 +00:00
core: don't try to re-relay an empty set of pool transactions
This commit is contained in:
parent
1dfed893e0
commit
74b216a17f
@ -796,7 +796,7 @@ namespace cryptonote
|
|||||||
{
|
{
|
||||||
// we attempt to relay txes that should be relayed, but were not
|
// we attempt to relay txes that should be relayed, but were not
|
||||||
std::list<std::pair<crypto::hash, cryptonote::transaction>> txs;
|
std::list<std::pair<crypto::hash, cryptonote::transaction>> txs;
|
||||||
if (m_mempool.get_relayable_transactions(txs))
|
if (m_mempool.get_relayable_transactions(txs) && !txs.empty())
|
||||||
{
|
{
|
||||||
cryptonote_connection_context fake_context = AUTO_VAL_INIT(fake_context);
|
cryptonote_connection_context fake_context = AUTO_VAL_INIT(fake_context);
|
||||||
tx_verification_context tvc = AUTO_VAL_INIT(tvc);
|
tx_verification_context tvc = AUTO_VAL_INIT(tvc);
|
||||||
|
Loading…
Reference in New Issue
Block a user