Skip to content

Commit

Permalink
Add session_outbound tracking.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Feb 9, 2024
1 parent 7d84eee commit 18e24e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/bitcoin/node/sessions/session_outbound.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ namespace libbitcoin {
namespace node {

class BCN_API session_outbound
: public attach<network::session_outbound>
: public attach<network::session_outbound>,
protected network::tracker<session_outbound>
{
public:
session_outbound(full_node& node, uint64_t identifier) NOEXCEPT;
Expand Down
3 changes: 2 additions & 1 deletion src/sessions/session_outbound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)

session_outbound::session_outbound(full_node& node,
uint64_t identifier) NOEXCEPT
: attach(node, identifier)
: attach(node, identifier),
network::tracker<session_outbound>(node.log)
{
};

Expand Down

0 comments on commit 18e24e9

Please sign in to comment.