p2p: add MAX_FEELER_CONNECTIONS constant
This commit is contained in:
parent
ad1b7b1817
commit
25d8264c95
2 changed files with 3 additions and 1 deletions
|
@ -1879,7 +1879,7 @@ bool AppInitMain(NodeContext& node)
|
||||||
connOptions.m_max_outbound_full_relay = std::min(MAX_OUTBOUND_FULL_RELAY_CONNECTIONS, connOptions.nMaxConnections);
|
connOptions.m_max_outbound_full_relay = std::min(MAX_OUTBOUND_FULL_RELAY_CONNECTIONS, connOptions.nMaxConnections);
|
||||||
connOptions.m_max_outbound_block_relay = std::min(MAX_BLOCKS_ONLY_CONNECTIONS, connOptions.nMaxConnections-connOptions.m_max_outbound_full_relay);
|
connOptions.m_max_outbound_block_relay = std::min(MAX_BLOCKS_ONLY_CONNECTIONS, connOptions.nMaxConnections-connOptions.m_max_outbound_full_relay);
|
||||||
connOptions.nMaxAddnode = MAX_ADDNODE_CONNECTIONS;
|
connOptions.nMaxAddnode = MAX_ADDNODE_CONNECTIONS;
|
||||||
connOptions.nMaxFeeler = 1;
|
connOptions.nMaxFeeler = MAX_FEELER_CONNECTIONS;
|
||||||
connOptions.nBestHeight = chain_active_height;
|
connOptions.nBestHeight = chain_active_height;
|
||||||
connOptions.uiInterface = &uiInterface;
|
connOptions.uiInterface = &uiInterface;
|
||||||
connOptions.m_banman = node.banman.get();
|
connOptions.m_banman = node.banman.get();
|
||||||
|
|
|
@ -62,6 +62,8 @@ static const int MAX_OUTBOUND_FULL_RELAY_CONNECTIONS = 8;
|
||||||
static const int MAX_ADDNODE_CONNECTIONS = 8;
|
static const int MAX_ADDNODE_CONNECTIONS = 8;
|
||||||
/** Maximum number of block-relay-only outgoing connections */
|
/** Maximum number of block-relay-only outgoing connections */
|
||||||
static const int MAX_BLOCKS_ONLY_CONNECTIONS = 2;
|
static const int MAX_BLOCKS_ONLY_CONNECTIONS = 2;
|
||||||
|
/** Maximum number of feeler connections */
|
||||||
|
static const int MAX_FEELER_CONNECTIONS = 1;
|
||||||
/** -listen default */
|
/** -listen default */
|
||||||
static const bool DEFAULT_LISTEN = true;
|
static const bool DEFAULT_LISTEN = true;
|
||||||
/** -upnp default */
|
/** -upnp default */
|
||||||
|
|
Loading…
Reference in a new issue