diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-11-29 01:54:43 -0600 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-11-29 01:54:43 -0600 |
commit | c041550ffa6273d6c9cba1a02ef6ab5ec97bf4fb (patch) | |
tree | b0c95712bf63a4ccd6d5fe21ec9abeb880e51ad7 /src/cryptonote_protocol/levin_notify.cpp | |
parent | Merge pull request #6971 (diff) | |
parent | Switch to Dandelion++ fluff mode if no out connections for stem mode (diff) | |
download | monero-c041550ffa6273d6c9cba1a02ef6ab5ec97bf4fb.tar.xz |
Merge pull request #6973
be84f67 Switch to Dandelion++ fluff mode if no out connections for stem mode (Lee Clagett)
Diffstat (limited to 'src/cryptonote_protocol/levin_notify.cpp')
-rw-r--r-- | src/cryptonote_protocol/levin_notify.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/cryptonote_protocol/levin_notify.cpp b/src/cryptonote_protocol/levin_notify.cpp index 634750cab..b6b1268cf 100644 --- a/src/cryptonote_protocol/levin_notify.cpp +++ b/src/cryptonote_protocol/levin_notify.cpp @@ -525,12 +525,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--) @@ -550,6 +545,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_); } }; |