aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/levin_notify.h
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-10-12 12:32:17 +0000
committerxiphon <xiphon@protonmail.com>2020-10-12 13:44:06 +0000
commita12a8174e06588be33e0790548873f6e8b160b23 (patch)
tree61dbb445295b00d0d7ebd094352f9797c1132077 /src/cryptonote_protocol/levin_notify.h
parentMerge pull request #6841 (diff)
downloadmonero-a12a8174e06588be33e0790548873f6e8b160b23.tar.xz
Dandelion++: skip desynced peers in stem phase
Diffstat (limited to 'src/cryptonote_protocol/levin_notify.h')
-rw-r--r--src/cryptonote_protocol/levin_notify.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cryptonote_protocol/levin_notify.h b/src/cryptonote_protocol/levin_notify.h
index 957794b12..43b61aead 100644
--- a/src/cryptonote_protocol/levin_notify.h
+++ b/src/cryptonote_protocol/levin_notify.h
@@ -69,6 +69,7 @@ namespace levin
class notify
{
std::shared_ptr<detail::zone> zone_;
+ i_core_events* core_;
public:
struct status
@@ -80,10 +81,11 @@ namespace levin
//! Construct an instance that cannot notify.
notify() noexcept
: zone_(nullptr)
+ , core_(nullptr)
{}
//! Construct an instance with available notification `zones`.
- explicit notify(boost::asio::io_service& service, std::shared_ptr<connections> p2p, epee::byte_slice noise, bool is_public, bool pad_txs);
+ explicit notify(boost::asio::io_service& service, std::shared_ptr<connections> p2p, epee::byte_slice noise, bool is_public, bool pad_txs, i_core_events& core);
notify(const notify&) = delete;
notify(notify&&) = default;
@@ -123,7 +125,7 @@ namespace levin
particular stem.
\return True iff the notification is queued for sending. */
- bool send_txs(std::vector<blobdata> txs, const boost::uuids::uuid& source, i_core_events& core, relay_method tx_relay);
+ bool send_txs(std::vector<blobdata> txs, const boost::uuids::uuid& source, relay_method tx_relay);
};
} // levin
} // net