aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-12 14:51:32 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-12 14:57:58 +0000
commit74b216a17fb7d47c8418a7bb3b0750402a76c41a (patch)
tree069f37a849d6480dfc36aa256fc0eb34583379ce /src
parentMerge pull request #1857 (diff)
downloadmonero-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.cpp2
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);