mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-04 11:33:03 +02:00
[net] Remove CNode friends
Both `CConnman` and `ConnmanTestMsg` no longer access private members of `CNode`, we can therefore remove the friend relationship.
This commit is contained in:
@@ -347,9 +347,6 @@ struct CNodeOptions
|
|||||||
/** Information about a peer */
|
/** Information about a peer */
|
||||||
class CNode
|
class CNode
|
||||||
{
|
{
|
||||||
friend class CConnman;
|
|
||||||
friend struct ConnmanTestMsg;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
const std::unique_ptr<TransportDeserializer> m_deserializer; // Used only by SocketHandler thread
|
const std::unique_ptr<TransportDeserializer> m_deserializer; // Used only by SocketHandler thread
|
||||||
const std::unique_ptr<const TransportSerializer> m_serializer;
|
const std::unique_ptr<const TransportSerializer> m_serializer;
|
||||||
|
Reference in New Issue
Block a user