diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-12 14:51:32 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-12 14:57:58 +0000 |
commit | 74b216a17fb7d47c8418a7bb3b0750402a76c41a (patch) | |
tree | 069f37a849d6480dfc36aa256fc0eb34583379ce /src | |
parent | Merge pull request #1857 (diff) | |
download | monero-74b216a17fb7d47c8418a7bb3b0750402a76c41a.tar.xz |
core: don't try to re-relay an empty set of pool transactions
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 9c5fae4ef..d53cacd8e 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -796,7 +796,7 @@ namespace cryptonote { // we attempt to relay txes that should be relayed, but were not 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); tx_verification_context tvc = AUTO_VAL_INIT(tvc); |