24 votes
Accepted

Why doesn’t Bitcoin use UDP to do Blockpropagation?

The Bitcoin system doesn't have just one network protocol: Any way of obtaining the blocks is equally valid-- blocks over freenet, over satellite broadcast, over the P2P network, all work just as ...
user avatar
  • 7,439
11 votes
Accepted

Sync with bitcoin-qt very slow (0,01%)

Bitcoin Core sync very slow Bitcoin Core is capable of full sync in a relatively short period of time depending mainly on the hardware. Most of the work done is not actually downloading the blocks, ...
10 votes

What exactly does the scary option "Allow incoming connections" do in Bitcoin Core?

There are two ways by which bitcoind connects to peers. The default is purely outbound connections - the node will use DNS seeds, as well as its own database of previously seen peers, and attempt to ...
user avatar
  • 16.4k
7 votes

What is a Feeler Connection? When is it used?

A feeler connection is a short-lived outbound connection that only starts up after your node has established the required 8 outbound connections and 2 block-relay-only outbound connections. The ...
user avatar
  • 231
5 votes
Accepted

How Do Peers Choose Which Peer To Trust?

either I broke some rule, or the other person did; In this case, how does my client find a trusted peer Your client does not trust any peer. It fully validates the blockchain. In the event of ...
user avatar
  • 60.5k
5 votes
Accepted

How is network conflict avoided between chains?

The protocol messages on Bitcoin include a magic number to identify the network they belong to. Bitcoin's magic values are described for example on the Protocol Documentation page in the Bitcoin wiki: ...
user avatar
  • 62.4k
5 votes
Accepted

IP's in the new and tried table for bitcoin nodes

Bitcoin Core's addrman (and its network stack in general) treats onion addresses as a type of IP addresses. So the (data part of) the onion addresses are stored directly. In older versions this was ...
user avatar
5 votes

What is a block-relay-only connection? What is it used for?

Block relay connections were added to bitcoin core in v0.19.0.1 in November 2019. Their purpose is to harden the peer-to-peer network against partition attacks. They do this through a clever ...
user avatar
  • 231
4 votes

What happens when a node goes offline for a while?

Full nodes are always in a perpetual state of "catching up to the network". This is true if they are just booting up for the first time, have been down for a month, or have been running since the ...
user avatar
  • 8,724
4 votes

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

The connection method depends on the client. Bitcoin Core will spend up to 11 seconds trying to connect to a peer in its database. If that doesn't work, it will query a DNS server (known as a DNS ...
user avatar
4 votes
Accepted

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

You can see from the Debug Window ("Peers" tab) that the Bitcoin Core client connects with multiple clients not only with different versions but different implementations. So to answer your question: ...
user avatar
  • 153
4 votes
Accepted

Why was my full node knocked off the network last night?

As Nate Eldredge said, the block that you received is a Bitcoin Cash block which is invalid to Bitcoin Core. Because of this, your node banned the Bitcoin Cash node that sent you the block. However, ...
user avatar
  • 60.5k
4 votes

Why doesn't Lightning have DNS bootstrapping?

It does! There is even a BOLT for it (check out: https://github.com/lightningnetwork/lightning-rfc/blob/master/10-dns-bootstrap.md ) from there you have the following example: dig lseed....
user avatar
3 votes

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

Nodes have more than 8 connection slots, by default they have 125 maximum connections. There are 8 outbound connections, but can still have incoming connections from other nodes when all 8 outbound ...
user avatar
  • 60.5k
3 votes

Why is my Electron Cash not detecting any servers?

I had a similar issue. The solution is easy. Choose the "Server" tab, then randomly right click on a server and choose "Use this as server" To make sure it works properly, please choose one of these:...
user avatar
  • 9,789
3 votes
Accepted

How to load a peer list file?

This feature is no longer present in Bitcoin Core. It was removed in 2011. You can get the same effect by adding multiple addnode= lines to your bitcoin.conf.
user avatar
3 votes

What is a DNS seed node vs a Seed Node?

2017 values are: seed.bitcoin.sipa.be dnsseed.bluematt.me dnsseed.bitcoin.dashjr.org seed.bitcoinstats.com seed.bitcoin.jonasschnelli.ch seed.btc.petertodd.org
user avatar
3 votes
Accepted

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

Bitcoin Core doesn't seem to have an option to specify the source port for outgoing connections, so you probably can't assume anything about the source port. However, if possible, you could configure ...
user avatar
3 votes
Accepted

How does a node find the active chain?

When a new node joins the network, it will look up nodes from the DNS seeds. It'll reach out to multiple nodes it hears about and ask them for more peers in turn. The new node asks each of their peers ...
user avatar
  • 62.4k
3 votes
Accepted

Can we shutdown the Bitcoin blockchain?

So can a blockchain can be shutdown by shutting down power supply across the globe? What would happen in such a case? If the world's power supply was suddenly cut off, then everything electronic ...
user avatar
  • 17.2k
3 votes
Accepted

How does a full node decide which outbound peers to have?

Addresses for outbound connections are largely chosen at random. The filtering of addresses comes at the time the addresses are first received by the node before they are added to the address database....
user avatar
  • 60.5k
2 votes
Accepted

no IPv6 peers connecting to my node

The issue was that bitcoind was discovering my wrong IPv6 address. (It mistook my link IPv6 address for my public one.) I set --discover=0 and set my IPv4 and IPv6 addresses manually with --externalip....
user avatar
  • 4,307
2 votes

How peer discovery works after connecting to hardcoded nodes?

Did you add the hardcoded nodes with addnode or with connect? addnode=<ip> Add a node to connect to and attempt to keep the connection open connect=<ip> Connect only to ...
user avatar
  • 62.4k
2 votes
Accepted

Persistency of Seed Nodes

I'm not familiar with the specific design of CryptoNote, but in general a cryptocurrency node must have a way of discovering its first node in the network. Once it discovers that first node, it can ...
user avatar
  • 28.6k
2 votes

Unable to connect to peers nor synchronize the network

It looks like your college network does not allow bitcoin connections. Technically, it should be possible to get it to work using Tor, but I don't have experience with that. You write that Tor works ...
user avatar
2 votes

Sync with bitcoin-qt very slow (0,01%)

I had the same problem on a very old machine (with 4 GB RAM and an Intel Core 2 Duo E8400 CPU) running Debian GNU/Linux. I read the very helpful answer of @Willtech and derived the following command: ...
user avatar
  • 121
2 votes

addnode vs seednode

A node is a machine that is connected to other nodes on the Bitcoin network which sends and receives blocks and transactions with other nodes. A peer is a node which your node is connected to. Peer ...
user avatar
  • 60.5k
2 votes
Accepted

Inbound requests after opening Electrum

As @Anonymous said Electrum servers listen on port 50002 so that's what you are seeing here. Your phone is connecting from a random local port to remote 50002 on the servers. Electrum gets ...
user avatar
  • 2,530
2 votes
Accepted

P2P getHeaders message - how to get block locator hashes

Block locator hashes are just the hashes of various blocks that you already have. As a new peer, the only block that you will have is the genesis block (the genesis block must be hard coded into your ...
user avatar
  • 60.5k
2 votes
Accepted

Double Spend Behavior on First Network Propagation

Bitcoin is a gossip network and relays transaction or blocks on a best effort basis. Hence you cannot determine the probability of one transaction being seen by the network versus the other. Now in ...
user avatar
  • 6,898

Only top scored, non community-wiki answers of a minimum length are eligible