How to set bitcoind‘s default connection count

Have I understood the concept of address, account and wallet correctly and how the wallet balance is calculated?

Where is the source code about this default connection count?

/** Maximum number of addnode outgoing nodes */
static const int MAX_ADDNODE_CONNECTIONS = 8;
/** Maximum number of block-relay-only outgoing connections */
/** The maximum number of peer connections to maintain. */
static const unsigned int DEFAULT_MAX_PEER_CONNECTIONS = 125;

There can be a maximum of 16 outgoing full relay connections, including 8 automated and 8 manual.
Additionally, there are two block relay connections.
Therefore, a node that starts up for the first time has 10 by default after a short while.

Can i use some command to set this number when starting bitcoind?

You can use -maxconnections for maintaining at most N connections to peers however this includes outbound and inbound. It is 125 by default.

Some modifications to the source code will be required if you want to make outbound connections count configurable: Increase maximum number of outgoing connections for full node

You can also increase connection count by incoming connections. This doc includes instructions and settings to setup node and listen for incoming connections using i2p:

Source link

What do you think?

Written by BTC Artist

Leave a Reply

Your email address will not be published. Required fields are marked *

GIPHY App Key not set. Please check settings

Anyone surprised that the news outlets aren’t covering this Bitcoin rally after the banks closing? 26k…wow

Talking Bitcoin storage, my hat, and Satoshi's problem

Talking Bitcoin storage, my hat, and Satoshi’s problem