aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-11-04 10:40:49 -0600
committerluigi1111 <luigi1111w@gmail.com>2020-11-04 10:40:49 -0600
commit01606ee52e2b4d2e2ff0e670f64cdf7c9b0ccc61 (patch)
tree4f3137ef6da040133800237a8155b0e5714211ee /src
parentMerge pull request #6972 (diff)
parentSwitch to Dandelion++ fluff mode if no out connections for stem mode (diff)
downloadmonero-01606ee52e2b4d2e2ff0e670f64cdf7c9b0ccc61.tar.xz
Merge pull request #6974
58cde83 Switch to Dandelion++ fluff mode if no out connections for stem mode (vtnerd)
Diffstat (limited to 'src')
-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 9dfefe957..00855ac26 100644
--- a/src/cryptonote_protocol/levin_notify.cpp
+++ b/src/cryptonote_protocol/levin_notify.cpp
@@ -511,12 +511,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--)
@@ -536,6 +531,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_);
}
};