Skip to content

Commit

Permalink
[net processing] Fix comment about returning nullptr from GetPeerRef()
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewbery committed Dec 4, 2020
1 parent 5a1f08c commit 4fe77ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net_processing.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ class PeerManager final : public CValidationInterface, public NetEventsInterface

private:
/** Get a shared pointer to the Peer object.
* May return nullptr if the Peer object can't be found. */
* May return an empty shared_ptr if the Peer object can't be found. */
PeerRef GetPeerRef(NodeId id) const;

/** Get a shared pointer to the Peer object and remove it from m_peer_map.
* May return nullptr if the Peer object can't be found. */
* May return an empty shared_ptr if the Peer object can't be found. */
PeerRef RemovePeer(NodeId id);

/**
Expand Down

0 comments on commit 4fe77ae

Please sign in to comment.