diff options
author | xiphon <xiphon@protonmail.com> | 2020-10-12 12:32:17 +0000 |
---|---|---|
committer | xiphon <xiphon@protonmail.com> | 2020-10-12 16:39:40 +0000 |
commit | 6352090e6d7f3c639ab9eec23a62304e785cb91b (patch) | |
tree | dceea5810ca4cd1e3532e74aead9c05886b52d77 /src/cryptonote_protocol/levin_notify.h | |
parent | Merge pull request #6819 (diff) | |
download | monero-6352090e6d7f3c639ab9eec23a62304e785cb91b.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.h | 6 |
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 |