aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/levin_notify.cpp
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2020-11-03 13:58:14 -0500
committerLee Clagett <code@leeclagett.com>2020-10-06 13:52:01 +0000
commit58cde83fb06859ce271dedb6a8f9f9e858347622 (patch)
treeffb0542a7ba2059c6ec9541eee36faf2cd7058de /src/cryptonote_protocol/levin_notify.cpp
parentMerge pull request #6916 (diff)
downloadmonero-58cde83fb06859ce271dedb6a8f9f9e858347622.tar.xz
Switch to Dandelion++ fluff mode if no out connections for stem mode
Diffstat (limited to 'src/cryptonote_protocol/levin_notify.cpp')
-rw-r--r--src/cryptonote_protocol/levin_notify.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/cryptonote_protocol/levin_notify.cpp b/src/cryptonote_protocol/levin_notify.cpp
index dbd11e7d0..9d349d3df 100644
--- a/src/cryptonote_protocol/levin_notify.cpp
+++ b/src/cryptonote_protocol/levin_notify.cpp
@@ -524,12 +524,7 @@ namespace levin
if (!zone_ || !core_ || txs_.empty())
return;
- if (zone_->fluffing)
- {
- core_->on_transactions_relayed(epee::to_span(txs_), relay_method::fluff);
- fluff_notify::run(std::move(zone_), epee::to_span(txs_), source_);
- }
- else // forward tx in stem
+ if (!zone_->fluffing)
{
core_->on_transactions_relayed(epee::to_span(txs_), relay_method::stem);
for (int tries = 2; 0 < tries; tries--)
@@ -549,6 +544,9 @@ namespace levin
MERROR("Unable to send transaction(s) via Dandelion++ stem");
}
+
+ core_->on_transactions_relayed(epee::to_span(txs_), relay_method::fluff);
+ fluff_notify::run(std::move(zone_), epee::to_span(txs_), source_);
}
};