mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-23 15:05:18 +02:00
[net/refactor] Add connection type as a member var to CNode
- Directly maintaining the connection type prevents having to deduce it from several flags.
This commit is contained in:
parent
46578c03e9
commit
d3698b5ee3
@ -2749,6 +2749,7 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn
|
||||
// traffic).
|
||||
id(idIn),
|
||||
nLocalHostNonce(nLocalHostNonceIn),
|
||||
m_conn_type(conn_type_in),
|
||||
nLocalServices(nLocalServicesIn),
|
||||
nMyStartingHeight(nMyStartingHeightIn)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user