Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions include/bitcoin/node/impl/sessions/session_peer.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ inline uint64_t CLASS::services_provided() const NOEXCEPT
this->node_settings().services_provided());
}

TEMPLATE
inline bool CLASS::relay() const NOEXCEPT
{
return NetworkSession::relay() && this->is_current_chain(true);
}

TEMPLATE
inline CLASS::channel_ptr CLASS::create_channel(
const socket_ptr& socket) NOEXCEPT
Expand Down
1 change: 1 addition & 0 deletions include/bitcoin/node/sessions/session_peer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class session_peer
using channel_ptr = network::channel::ptr;

inline uint64_t services_provided() const NOEXCEPT override;
inline bool relay() const NOEXCEPT override;
inline channel_ptr create_channel(
const socket_ptr& socket) NOEXCEPT override;
inline void attach_handshake(const channel_ptr& channel,
Expand Down
Loading