Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [peer-discovery]

Questions related to how Bitcoin finds other peers to communicate with.

1
vote
0answers
19 views

When an IP address in *new* table is overwritten?

I'm reading the address management of Bitcoin core implementation. There is one thing I couldn't understand is in which condition an IP address in the new table of a node is overwritten? In ...
0
votes
1answer
19 views

Inbound requests after opening Electrum

A few days ago, I was exploring Electrum (Android) out of curiosity. A few moments later, I get notified by our firewall that it flagged several suspicious inbound requests. The source IPs came from ...
1
vote
1answer
25 views

How a web-service like bitnode.earn can know each node's blockchain height?

How a web-service like bitnode.earn can know each node's blockchain height? We can get some information of each node in bitcoin network in this web-site: https://bitnodes.earn.com/nodes/ And, it is ...
9
votes
4answers
2k views

Why doesn’t Bitcoin use UDP to do Blockpropagation?

Bitcoin uses TCP for P2P but why is UDP not used? Modern day internet has relatively low packet loss rate so UDP is reliable. Even if some packets are dropped the peers can always request for the ...
0
votes
0answers
35 views

How is the network topology of peers ensured to be whole via bitcoin peering?

Say the entire bitcoin network topology looked this: A -- B -- C | D -- E -- F Then I bring up bitcoin clients on all nodes at the same time and the minimum number of bitcoin peers was only 2. ...
2
votes
1answer
55 views

How do my bitcoin peers become diversified from the set of stable nodes?

I read through a variety of threads on initial peer discovery like How do Bitcoin clients find each other? and How does the bitcoin client make the initial connection to the bitcoin network? and they ...
2
votes
1answer
83 views

How Do Peers Choose Which Peer To Trust?

So the way I understand how the blockchain works is that each new block uses the previous block's hash, which means if my block[100].hash != someone_elses_block[100].hash that means that either I ...
0
votes
1answer
47 views

How does blockchain ensure that a closed loop in network is not formed?

Suppose there are 9 nodes and each node can connect to 8 other nodes. All these 9 nodes connect to the 8 others. Then when a new node comes where does it connect to in this case? All the current nodes ...
0
votes
0answers
12 views

How does Bitcoin bootstrap? [duplicate]

Like, how does it find computers in the first place to start downloading the ledger from? It can't be done with hardcoded addresses like Tor does for its directory cus that would defeat the point ...
1
vote
2answers
2k views

Finding IP addresses of all bitcoin miners

I understand that the transactions don't have any IP info in them but I am curious to know if it is possible to enumerate over list of all the IP addresses involved in mining?
2
votes
2answers
2k views

Why is my Electron Cash not detecting any servers?

I am using Elecron Cash 2.9.4, and I opened the wallet by using the seed of my old (BTC) Electrum Wallet. I intended to get BCH.
2
votes
0answers
118 views

Clarification of some getaddr() function inputs and outputs

In the Bitcoin system to discover new nodes, each node communicates with its peers by sending getaddr() to the peers. Based on the bitcoin implementation: //! the maximum percentage of nodes to ...
1
vote
0answers
109 views

How many peers does bitcoind try to connect to?

Let's say a new node try to connect to the network. Since it doesn't have any node in its peers.dat it makes a request to the DNS seeder and receives a list of addresses. Now, how many of these ...
1
vote
1answer
197 views

How to load a peer list file?

According to this page, The client will automatically read a file named "addr.txt" in the bitcoin data directory and will add any addresses it finds in there as node addresses. However, I can'...
1
vote
1answer
53 views

Why connected node count have dropped since august 1st?

before 1st august i used to connect to 55+ nodes on my bitcoin-core, even if i kept the bitcoin-core running for 12 hours. but after 1st of august, the connected nodes count is not going above 15-23 ...
0
votes
1answer
67 views

Does bitcoin-core software/client connects with only same version number nodes?

i am trying to connect to maximum number of nodes. i noticed there are many receive version message in debug.log file so i have question, does the bitcoin-core connects to only those having either ...
2
votes
1answer
144 views

How does the network handle changing IPs?

From what I understand, when a node first comes online, it requests a list of known IPs from all of it's peers. I'm assuming that by doing that, it shares its own ip to all of the peers, which in turn ...
2
votes
1answer
69 views

How does a node forget about other nodes?

It is said that addr message: Provide information on known nodes of the network. Non-advertised nodes should be forgotten after typically 3 hours. I did not totally understood what does it mean ...
0
votes
1answer
156 views

Working with the Bitcoin network protocol

I am very interested in the p2p protocol used by Bitcoin clients. There are some excellent answers here that describe the way clients connect to the network. How does the bitcoin client determine the ...
1
vote
1answer
261 views

Persistency of Seed Nodes

A few of the guys at work have asked for me to make them a cryptocurrency (god knows why but I'm happy to oblige). I'm basing it on Cryptonote and have got it all built. I understand that I need at ...
0
votes
2answers
2k views

Unable to connect to peers nor synchronize the network

Neither I'm able to connect to my peers nor I'm able to synchronize my bitcoin core in my network. When I connect my laptop to my mobile hotspot synchronizing works fine and progress in shown. Here ...
1
vote
1answer
380 views

What happens when a node goes offline for a while?

Let's imaging a full node goes offline for a month, so they're missing ~4300 blocks (just using 10min/blk). Are there any message exchanges that receive transactions to help sync the 'booting' node ...
0
votes
1answer
131 views

AWS ELB for Bitcoin node discovery?

I was able to locate the following discussion (and a few others that were marked duplicate of this one) on node discovery in Bitcoin: How do Bitcoin clients find each other? I guess, the primary ...
2
votes
1answer
739 views

Bitcoin peer list

I noticed that a company I have connections with, has an asset (ip) that appears on this bitcoin peer list; http://pastebin.com/HTPjuJBt In laymens terms, what is a peer list, and should I be ...
5
votes
1answer
523 views

How peer discovery works after connecting to hardcoded nodes?

I am tinkering with the bitcoin source code and trying to understand the exact working of peer discovery mechanism in the testnet mode for which I have made the following changes: Disabled the DNS ...
3
votes
1answer
481 views

Bitcoin testnet not connecting to hardcoded ip addresses

I am trying to force bitcoind running in testnet mode to connect to my own defined set of ip addresses(basically 127.0.0.1:diffPorts). For this I have disabled dnsseed and starting with a fresh ...
1
vote
1answer
560 views

How to trigger port for Bitcoin client (e.g. 8333)

According to this it's possible to have incoming connections to Bitcoin client by forwarding port 8333 on the router. I was wondering if there is some specific port range Bitcoin Core uses for making ...
2
votes
1answer
305 views

no IPv6 peers connecting to my node

getnetworkinfo says IPv6 is working on my node: { "name" : "ipv6", "limited" : false, "reachable" : true, "proxy" : "127.0.0.1:9050" } Yet why don't I get any IPv6 peers connecting to my node? ...
1
vote
1answer
571 views

Altcoin peers do not sync with each other

I created two altcoin peers and they can add blocks to genesis block. However their blockchains do not sync with each other! The only way let the block merge is to stop a peer and restart the peer. ...
1
vote
0answers
156 views

Bitcoin.conf connect command

When configuring the bitcoin.conf file, what should you put in connect=? There are IP addresses listed here, so I removed the # sign and left them as is. I also entered my WAN address and my local ...
5
votes
1answer
3k views

How does bitcoin find peers? [duplicate]

I've seen a few questions about this already and they talk in generalities. I'm talking about specifics. If I start the bitcoin client from scratch, where in the source code does it actually add nodes....
6
votes
1answer
4k views

How do bitcoin nodes initially find peers? [duplicate]

In all materials related to bitcoin, the people talk about the p2p bitcoin network. OK, but there should be a central server that connects the peers to each one. Like the torrent sites. The torrents ...
6
votes
1answer
2k views

What is the difference between the bitcoind command line options “addnode” and “connect”?

As seen here: https://en.bitcoin.it/wiki/Running_Bitcoin#Command-line_arguments -addnode=ip Add a node to connect to and attempt to keep the connection open -connect=ip Connect ...
6
votes
1answer
1k views

Can any Bitcoin client do local peer discovery and blockchain synchronization?

Usually, when a full Bitcoin client such as bitcoind, Bitcoin-QT, or Multibit start on a fresh installation, they connect "to the network" to download the blockchain. If someone has multiple computers ...
6
votes
1answer
1k views

How secure are the DNS servers for Bitcoin?

With the version 0.6, Bitcoin introduced the DNS servers that populate the initial peers for new clients. How secure are those servers in terms of being immune to takedown attacks, or injection of ...
132
votes
2answers
39k views

How do Bitcoin clients find each other?

What protocols or algorithms are Bitcoin clients using in order to find their peers? I learnt that BitTorrent clients may rely on central computers called trackers. Do Bitcoin clients need any kind of ...
37
votes
3answers
9k views

How does the bitcoin client make the initial connection to the bitcoin network?

Once the bitcoin client is connected to a machine (or multiple machines) on the bitcoin network, they can share information (e.g. the block-chain, IP addresses of other nodes, etc). I understand how ...