3006@@ -3007,7 +3007,7 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, SOCKET hSocketIn, const
3007 LogPrint(BCLog::NET, "Added connection peer=%d\n", id);
3008 }
3009
3010- m_deserializer = std::make_unique<V1TransportDeserializer>(V1TransportDeserializer(Params(), GetId(), SER_NETWORK, INIT_PROTO_VERSION));
3011+ m_deserializer = std::make_unique<V1TransportDeserializer>(V1TransportDeserializer(Params(), id, SER_NETWORK, INIT_PROTO_VERSION));
f3e451bebfe2e2d8de901d8ac29c064a51d3b746:
Seem redundant to construct the type twice, fist by calling the constructor, then by calling the copy constructor.
Definitely true, but unrelated to this PR. Very happy to open/review a PR that changes the initialization of these members. They could also be const
and initialized in the initializer list, and made private.