mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
refactor: enumerate each CNode argument on a separate line
This change in styling was introduced in a1580a04 (bitcoin#25355) but
not backported in 9bf38295
(dash#6035). This remedies that.
This commit is contained in:
parent
f8d1e5b3ec
commit
71d14528ca
12
src/net.cpp
12
src/net.cpp
@ -4126,7 +4126,17 @@ ServiceFlags CConnman::GetLocalServices() const
|
|||||||
|
|
||||||
unsigned int CConnman::GetReceiveFloodSize() const { return nReceiveFloodSize; }
|
unsigned int CConnman::GetReceiveFloodSize() const { return nReceiveFloodSize; }
|
||||||
|
|
||||||
CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, std::shared_ptr<Sock> sock, const CAddress& addrIn, uint64_t nKeyedNetGroupIn, uint64_t nLocalHostNonceIn, const CAddress& addrBindIn, const std::string& addrNameIn, ConnectionType conn_type_in, bool inbound_onion, std::unique_ptr<i2p::sam::Session>&& i2p_sam_session)
|
CNode::CNode(NodeId idIn,
|
||||||
|
ServiceFlags nLocalServicesIn,
|
||||||
|
std::shared_ptr<Sock> sock,
|
||||||
|
const CAddress& addrIn,
|
||||||
|
uint64_t nKeyedNetGroupIn,
|
||||||
|
uint64_t nLocalHostNonceIn,
|
||||||
|
const CAddress& addrBindIn,
|
||||||
|
const std::string& addrNameIn,
|
||||||
|
ConnectionType conn_type_in,
|
||||||
|
bool inbound_onion,
|
||||||
|
std::unique_ptr<i2p::sam::Session>&& i2p_sam_session)
|
||||||
: m_deserializer{std::make_unique<V1TransportDeserializer>(V1TransportDeserializer(Params(), idIn, SER_NETWORK, INIT_PROTO_VERSION))},
|
: m_deserializer{std::make_unique<V1TransportDeserializer>(V1TransportDeserializer(Params(), idIn, SER_NETWORK, INIT_PROTO_VERSION))},
|
||||||
m_serializer{std::make_unique<V1TransportSerializer>(V1TransportSerializer())},
|
m_serializer{std::make_unique<V1TransportSerializer>(V1TransportSerializer())},
|
||||||
m_sock{sock},
|
m_sock{sock},
|
||||||
|
12
src/net.h
12
src/net.h
@ -648,7 +648,17 @@ public:
|
|||||||
|
|
||||||
bool IsBlockRelayOnly() const;
|
bool IsBlockRelayOnly() const;
|
||||||
|
|
||||||
CNode(NodeId id, ServiceFlags nLocalServicesIn, std::shared_ptr<Sock> sock, const CAddress &addrIn, uint64_t nKeyedNetGroupIn, uint64_t nLocalHostNonceIn, const CAddress &addrBindIn, const std::string &addrNameIn, ConnectionType conn_type_in, bool inbound_onion, std::unique_ptr<i2p::sam::Session>&& i2p_sam_session = nullptr);
|
CNode(NodeId id,
|
||||||
|
ServiceFlags nLocalServicesIn,
|
||||||
|
std::shared_ptr<Sock> sock,
|
||||||
|
const CAddress &addrIn,
|
||||||
|
uint64_t nKeyedNetGroupIn,
|
||||||
|
uint64_t nLocalHostNonceIn,
|
||||||
|
const CAddress &addrBindIn,
|
||||||
|
const std::string &addrNameIn,
|
||||||
|
ConnectionType conn_type_in,
|
||||||
|
bool inbound_onion,
|
||||||
|
std::unique_ptr<i2p::sam::Session>&& i2p_sam_session = nullptr);
|
||||||
CNode(const CNode&) = delete;
|
CNode(const CNode&) = delete;
|
||||||
CNode& operator=(const CNode&) = delete;
|
CNode& operator=(const CNode&) = delete;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user