Questions tagged [peers]

should be used for questions related to the peers of the bitcoin network

Filter by
Sorted by
Tagged with
2 votes
1 answer
74 views

How to clear peer list?

How to clear bitcoind's peer list? (also containing peers in the past) I didn't find an RPC command for it, is it stored in a file? Where?
user avatar
5 votes
1 answer
226 views

What is the difference between blocksonly and block-relay-only in Bitcoin Core?

The terms blocksonly and block-relay-only that are used in Bitcoin Core are very similar. What is the difference between them?
user avatar
  • 181
2 votes
1 answer
81 views

Does running a node benefit the network?

There is a 10-year old question asking this. The sole answer to that question at the time was essentially a yes, and I've seen people say that running a node makes the network more "secure" ...
user avatar
6 votes
1 answer
369 views

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

Modern versions of bitcoin core establish a fixed number of outbound connections: 8 outbound-full-relay connections and 2 block-relay-only connections. What is the purpose of block-relay-only ...
user avatar
  • 251
1 vote
0 answers
29 views

The nmap script bitcoin-getaddr often does not return a response

For a project I need to write a scraper that sends a GetAddr request to all Bitcoin nodes. I determine the reachable nodes using the bitnodes.io API. Then I go through all the IPs and send a request ...
user avatar
  • 11
4 votes
2 answers
218 views

What is a Feeler Connection? When is it used?

The bitcoin client hard codes a limit of 8 outbound connections and 2 block-only connections. Your node will try to always maintain these 10 outbound connections with reliable peers as a defense ...
user avatar
  • 251
2 votes
0 answers
36 views

What is the prior work or inspiration for the new/tried table design?

In Eclipse Attacks on Bitcoin’s Peer-to-Peer Network section 8 Related Work, the authors describe how some of the countermeasures to eclipse attacks were inspired by botnets. What inspired the design ...
user avatar
  • 251
6 votes
1 answer
124 views

Bitcoin Core stalled peer logic during initial block download

I'm trying to track down the cause of unexpected (20% to 85%) IBD slowdowns between my 2020 and 2021 annual performance tests. I experienced this slowdown with multiple implementations, so I don't ...
user avatar
3 votes
1 answer
85 views

Network Unroutable

I just started running bitcoin core on a dedicated laptop. I wanted to see if my node is connected to my Wasabi wallet so I sent some sats from Strike. In the peers list Wasabi shows up but under ...
user avatar
  • 31
0 votes
1 answer
37 views

blockchain nodes that dont get the new block

i read somewhere that after 40 second of creating a new block in the blockchain there's still 5% of the nodes that does not have the block, what happens to them if they were offline or down at that ...
user avatar
1 vote
2 answers
68 views

Is there any way to activate full 'leech' mode?

As I understand, bitcoin basically represents a situation where nodes are expected to (and do) serve other nodes in the network, information that represents the money of all transactions in that ...
user avatar
1 vote
0 answers
48 views

How long do peers normally stay connected?

I've been experimenting with the Bitcoin protocol by trying to connect to peers and receive blocks, which has been working so far. However, often peers will close the TCP connection within a couple of ...
user avatar
  • 111
0 votes
1 answer
218 views

How do I increase the maximum number of outbound peers?

How can I increase the maximum number of outbound peers bitcoin core can connect to? I can't seem to be able to connect to more than 10. I've tried using the -maxconnections flag but it doesn't seem ...
user avatar
0 votes
1 answer
137 views

When exactly are peers saved in peers.dat file?

I had tried few things when reviewed this PR: https://github.com/bitcoin/bitcoin/pull/22013 While reviewing PR https://github.com/bitcoin/bitcoin/pull/22651, I was expecting 1 peer to be saved in ...
user avatar
1 vote
1 answer
50 views

Do peers advertise their chain work?

If yes, is this how a node decides that the peer has the best chain for headers-first download?
user avatar
  • 31
0 votes
1 answer
55 views

How to understand the first reply of a node

I have send my version message to a bitcoin node and the hexdump of his answer was this: https://pastebin.com/QBNaeS0g Maybe this is a network related question but I want to know the version used by ...
user avatar
  • 2,391
1 vote
2 answers
145 views

Testnet3 app will not sync to peers

I was just trying to connect testnet3 to my own testnet node through the "trusted peer" and "skip regular peers" settings, but it seems that in this way it cannot connect to a ...
user avatar
0 votes
1 answer
139 views

Increase maximum number of outgoing connections for full node

If incoming connections are disabled, Max full-relay connections are 8: src/net.h#L64 and Max block-relay-only connections are 2: src/net.h#L68 How are these decided and how can a user change these ...
user avatar
2 votes
0 answers
310 views

Why does bitcoin core appear to freeze while connecting to peers on startup?

When I startup bitcoin-qt (version 0.20.1.0) on linux, at the bottom of the app is the mesage "Connecting to peers... 4 years and 10 weeks behind". It appears that things are just frozen, no ...
user avatar
  • 121
1 vote
0 answers
163 views

Score value of my node is not rising

I'm running Bitcoin Core 0.20.1 in Debian Buster. I run the daemon behind Tor network. My current settings are: /etc/tor/torrc SOCKSPort 9005 ControlPort 9501 HiddenServiceDir/var/lib/tor/bitcoin-...
user avatar
-1 votes
1 answer
157 views

How does bitcoin core establish a peer to peer network

I've tried to look for an answer to this online and haven't found any. My question is: how does bitcoin establish a peer to peer network. Establishing a centralized network with a server in the middle ...
user avatar
8 votes
2 answers
2k views

What happens to transactions in the mempool when their parent transaction expires?

I was just reading the Coin Metrics Newsletter #53, and it included a section about the recent mempool congestion. After mentioning transactions that got evicted due to the network's queue of ...
user avatar
  • 63.4k
0 votes
1 answer
104 views

Can full node with only IPv4 connect to another full node with only IPv6?

As far as I know, IPv4 and IPv6 are two different protocols and direct connection between an IPv4 and IPv6 cannot be established. If I run a full node with only IPv4, can my node connect to another ...
user avatar
  • 387
2 votes
1 answer
85 views

How does having a large mempool and allowing a greater transaction ancestry set change the interaction with your peers?

Bitcoin Core by default allows up to 300 MiB of mempool data, and restricts unconfirmed transaction trees to an ancestry set of at most 25 transactions and 101 kvB of transaction data. Since these are ...
user avatar
  • 63.4k
1 vote
1 answer
96 views

Number of bitcoind peers drops precipitously every 30 days or so

I run bitcoind headless on a linux box with maxconnections=256 and port 8333 open on the router. Using Bitcoin Node Manager I monitor node status occasionally. Peer count of course starts at 8 and ...
user avatar
  • 434
1 vote
0 answers
120 views

How to achieve fast mempool synchronization at startup?

I just started my 'occasional' full-node and I am watching the size of the mempool grow after full block synchronization - watch -n 3 'bitcoin-cli getrawmempool true |jq "length"' - it has around 4000 ...
user avatar
  • 701
0 votes
1 answer
58 views

How to determine the peer/node that created a transaction?

You're running your node and you receive a transaction from a peer, how do you determine if that peer created the transaction or if it is simply relaying the transaction. In other words, can you map ...
user avatar
  • 157
3 votes
1 answer
71 views

Transaction propagation criteria vs mempool inclusion cirteria

Do Bitcoin nodes propagate every transaction or only transactions that meet certain criteria? For instance, a transaction with a fee of 0 won't necessarily get included into a block and it might even ...
user avatar
  • 157
0 votes
2 answers
89 views

bitcoin back-end blockchain storage

bitcoin uses blockchain so blockchain is peer to peer, every peer stores the data so I wonder where does the data of all the bitcoins is stored? who is peer in case of bitcoin? so that peer gets ...
user avatar
  • 101
1 vote
1 answer
307 views

The result of bitcoin-cli getpeerinfo command

When I type bitcoin-cli getpeerinfo in shell, conspicuous property of the result are addr and addrlocal addrbind. 14.xx is my address and others are peer's address. I know that Bitcoin client can do ...
user avatar
  • 363
1 vote
1 answer
27 views

Bitcoin network resources requirement

Supposing we are alone, could it be possible to run the whole bitcoin network and full capacity of it (maximum transaction per second by different peer) on a low end computer, and how can someone ...
user avatar
  • 2,391
1 vote
0 answers
43 views

Why not connect to all (huge amount of) nodes?

If you mine, a good network propagation time is important in case of mining-forks. I read that bitcoin only connects to 8 nodes. I would connect to many nodes as I can support to minimize my block ...
user avatar
0 votes
1 answer
173 views

Can I connect to a node as read-only?

In my Electrum wallet I can open the Network Window and view Nodes I'm connected to. Here's an example: electrum4101870.fullhealth.net. I can also find public nodes at https://bitnodes.earn.com/nodes/...
user avatar
  • 117
0 votes
1 answer
168 views

P2P getHeaders message - how to get block locator hashes

I'm trying to build my own block explorer So that I need to use p2p bitcoin protocol. For that I'm using btcd (golang) lib. According to bitcoin book I have to send version message (and receive ...
user avatar
  • 85
0 votes
1 answer
281 views

Unable to find peers when connecting through tor proxy

I have tor running as a service on my computer and start bitcoind with -proxy=127.0.0.1:9050 but it fails to find any seeds through DNS or anything during startup, and even after leaving it on for ...
user avatar
4 votes
2 answers
181 views

How to confirm how many peers a node has?

When a node requests one of it's neighbours for a list of it's peers, that node responds with a list of all of it's neighbours. I'm just wondering is there a way to confirm that those nodes are ...
user avatar
1 vote
1 answer
69 views

Is there a way to distinguish miner nodes from other nodes?

In the bitcoin network, there are many different types of nodes. One of these types are miners and in the bitcoin network, is there any way to distinguish a miner node from a non-mining node? I'm ...
user avatar
4 votes
3 answers
208 views

Bitcoin core full node - Should I choose my peers or it's fine to use the hardcoded ones?

I have a full node v 0.17.1 running 12-14 hrs/day and I was wondering if it's helpful, for privacy or for whatever reason, to add peers (maybe from https://bitnodes.earn.com/nodes/leaderboard/) with ...
user avatar
0 votes
1 answer
168 views

Why are some of my peers rejecting this CSV transaction?

The CSV-redeeming TX I broadcast: https://www.blocktrail.com/tBTC/tx/807d464fff227ce98cfb5f1292069e2793e99f21b0539a1729cc460af32add77 The locktime was set for ten minutes, and the redeeming tx (...
user avatar
  • 4,676
1 vote
0 answers
203 views

It's October 2018. ./bitcoin-qt -reindex-chainstate takes forever. Is there a way to speed this up?

Current version: Bitcoin Core 0.16.3 I think I have a corrupted blockchain download as my VM box was shut down in the middle of syncing. Which is why I'm doing a -reindex-chainstate I have the ...
user avatar
1 vote
0 answers
54 views

How to set up a gateway node?

I have two nodes running in my local machine. one public facing and another connected ONLY to the public facing node. I ensure they are whitelisted and in different ports. the nodes connect just fine, ...
user avatar
  • 51
2 votes
0 answers
34 views

Setting up node, no connection when announce ip address to peers [closed]

I want to announce my host name when running node. When I set nxt.myAddress=hostname or IPaddress, there are no connection to peers. But when I keep it empty everything is fine.
user avatar
14 votes
4 answers
5k 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 ...
user avatar
1 vote
1 answer
95 views

structure of communicating with bitcoin DNSs to get list of nodes

I want to communicate with bitcoin DNSs to get list of bitcoin nodes. for now I want some example and structure of messages between I and bitcoin DNS. I found two DNS names: dnsseed.bluematt.me ...
user avatar
0 votes
1 answer
135 views

Unwanted peers connecting to Altcoin

I am building an altcoin using the litecoin source code. I have removed all of the Emplace Seed calls in chainparams.cpp for DNS seeding, changed my default node communication port to port 421 and ...
user avatar
0 votes
1 answer
58 views

Is a peer connection maintained for the life of the node, or is it recreated on every request?

Lets assume we have 2 bitcoin nodes, A and B. A is already up, and B is now coming up. B lists A as a peer node and attempts to establish a connection. A accepts, a handshake is completed and they ...
user avatar
1 vote
1 answer
1k views

Bitcoin core: connect to specific peers from file

I want to launch Bitcoin core connecting to a specific list of peers. I can do this using connect: bitcoind -connect=<IP1> -connect=<IP2> Is there a way I can put the peers I want to ...
user avatar
2 votes
1 answer
78 views

On a low level, how are long chains kept secret and later broadcast during 51% attacks?

I've been reading about the vulnerabilities of PoW crypto, and there's a part of it that I don't understand. Suppose I wanted to stage a 51% attack on Bitcoin (not really feasible, but bear with me). ...
user avatar
  • 123
1 vote
3 answers
1k views

How to run multiple node in same machine?

I have created an altcoin base on litecoin source code. I want to test it in multiple node to test peers of each node weather each node can connect to each other. So I try to run "mycoind" in multiple ...
user avatar
2 votes
1 answer
441 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 ...
user avatar