Author

Topic: Questions about Bitcoin development technology (Read 138 times)

legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
October 06, 2022, 10:11:38 AM
#3
In regards to your second question, you can only obtain the IP addresses of nodes connected to your own node, by inspecting peers.dat. Collecting those of other IP addresses requires you to build a custom version of Core that dumps peer gossip output to a JSON file or something similar.
legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
Here are some questions about the node deployment of Bitcoin. I hope you can help me. Thanks.

Question 1
-connect=
       Connect only to the specified node; -noconnect disables automatic connections (the rules for this peer are the same as for -addnode). This option can be specified multiple times to connect to multiple nodes.

The above is a description of Bitcoin connection options. What is the maximum number of times the connection is used?in other words,How many nodes can a node connect at the same time?

The default number of connections (nodes) Bitcoin Core works with is 125: 10 outbound and 115 inbound.
This number is big - leads to a lot of traffic - and, depending on your internet plan you may want to adjust.
Normally the peer nodes are "harvested" from the network, but you can add with addnode "fallback nodes" you may want to be sure you connect to (see here)
From the way I understand these numbers, I think that the answer to your intended question may be 10.

Question 2
If I have an IP address of a node, can I obtain the IP addresses of all nodes connected to this node?

Nope.
newbie
Activity: 3
Merit: 4
Here are some questions about the node deployment of Bitcoin. I hope you can help me. Thanks.

Question 1
-connect=
       Connect only to the specified node; -noconnect disables automatic connections (the rules for this peer are the same as for -addnode). This option can be specified multiple times to connect to multiple nodes.

The above is a description of Bitcoin connection options. What is the maximum number of times the connection is used?in other words,How many nodes can a node connect at the same time?

Question 2
If I have an IP address of a node, can I obtain the IP addresses of all nodes connected to this node?
Jump to: