Questions tagged [peers]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
59 views

Why do nodes have a maximum peer count?

Why do nodes have a maximum peer count, in other words what could go wrong if each node is connected to all the nodes of the network?
Noah Bergh's user avatar
1 vote
0 answers
45 views

Max amount of peers connections on LND

I'm trying to connect to a long list of peers. I'm running a LND(0.17.0) node. My list has almost 1k peers and I can only connect to 6 of them. Is my node limiting the max connections? If so, is it ...
polespinasa's user avatar
2 votes
2 answers
266 views

Missing transactions from full node

I am running a full node (bitcoin-core) that connects to the peers network. I am also running and SPV node with a wallet (bcoin). I have made 2 different send transaction from the SPV wallet with very ...
stopiky's user avatar
  • 21
4 votes
1 answer
210 views

Why is my sync slow even with a dbcache of 16000?

We know that initial sync takes ages especially after 500-600k blocks. I get 500k in 30 hours, but now when I'm standing on 600k block syncing is quite slow, it took a couple of days to reach that ...
javierMarquez's user avatar
-1 votes
1 answer
111 views

How to identify bad peers that are connected to my node

How do I know if it's a bad peer? I see a lot of connections, but does the software filter out bad peers? Or is it up to me to do it? Thank you!
Edward Halverson's user avatar
0 votes
0 answers
24 views

When does a Bitcoin Core node first start getting inbound peers?

It is my understanding that a fresh node will only make outbound connections during IBD and not advertise its own IP address, yet. Since other nodes will only advertise IP addresses that they learn ...
Murch's user avatar
  • 73k
2 votes
0 answers
22 views

No inv messages from inbound nodes

I'm writing a tx relay-only node that can accept inbound connections and make outbound ones. Just for research. What I'm seeing that on inbound nodes the initial handshake completes and the connection ...
Eva4684's user avatar
  • 41
1 vote
1 answer
226 views

How to find transaction's original author in Bitcoin Core?

I have recently installed Bitcoin Core on my PC and downloaded the blockchain in prune mode. I want to find out if there is a way to find transactions original author, the node which broadcasted a ...
MagentaPink's user avatar
3 votes
1 answer
93 views

bitcoin-cli -netinfo not showing incoming ipv4 peers

I was trying to get my bitcoin node to be able to receive ipv4 peers for couple of days, but could not see any incoming peers even tho my port 8333 was open and reachable and to my best knowledge ...
Wiredancer's user avatar
4 votes
1 answer
139 views

How does ban score algorithm calculate ban score for a node?

Specifically I want to know, for which types of misbehaves does ban score algorithm give a ban score to a node?
Sakib's user avatar
  • 41
1 vote
1 answer
310 views

Incoming and Outgoing Node Connections

Should I be concerned that I only see "Out" connections, and not "In" connections? What does this mean? Is everything fine, or is there something I'm doing wrong?
bluefuze's user avatar
1 vote
1 answer
149 views

Is there any way to get my peer nodes‘ peer nodes?

I can use bitcoin-cli getpeerinfo to get the peer nodes' information. Is there some way to further get the peer nodes' peer nodes, i.e. the 2-order neighbor node?
noob's user avatar
  • 97
0 votes
1 answer
69 views

Collisions when adding an address entry to the new table

What does the bitcoin protocol do to handle collisions when adding addresses to the new table?
Vinay Shetty's user avatar
0 votes
1 answer
137 views

source address is .onion in peers.dat

I recently wrote a tool to decode the peers.dat in bitcoin core. Something peculiar that I noticed is how there were some addresses in the tables that had the source address as a .onion address. Does ...
Vinay Shetty's user avatar
1 vote
0 answers
50 views

Protocol version message is ignored by node

I'm trying to send a protocol version message to my node on port 8333. I found this site that explains how to send a version message from the command line. I have a C++ app that is creating the ...
Zephyrus's user avatar
  • 658
1 vote
0 answers
80 views

Drastic decrease in peers

Been running a standalone node on the same hardware for some years now. I run this node simply as a supportive node, unlocked bandwidth to facilitate people bootstrapping the blockchain. No settings ...
Mike's user avatar
  • 464
2 votes
1 answer
307 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?
Vincent Alex's user avatar
8 votes
1 answer
783 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?
Lightlike's user avatar
  • 591
3 votes
1 answer
138 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" ...
Vojtěch Strnad's user avatar
7 votes
1 answer
2k 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 ...
vnprc's user avatar
  • 385
1 vote
0 answers
51 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 ...
Brian's user avatar
  • 11
6 votes
3 answers
514 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 ...
vnprc's user avatar
  • 385
2 votes
1 answer
143 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 ...
vnprc's user avatar
  • 385
6 votes
1 answer
368 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 ...
Jameson Lopp's user avatar
5 votes
2 answers
200 views

What does "Network Unroutable" means?

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 ...
Fool's user avatar
  • 51
0 votes
1 answer
49 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 ...
pardis.ti's user avatar
2 votes
2 answers
126 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 ...
reason 10's user avatar
1 vote
0 answers
58 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 ...
adrian's user avatar
  • 111
1 vote
1 answer
1k 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 ...
3872639819347's user avatar
1 vote
1 answer
554 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
54 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?
paulo's user avatar
  • 31
0 votes
1 answer
98 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 ...
Saxtheowl's user avatar
  • 2,770
1 vote
2 answers
225 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 ...
user117688's user avatar
0 votes
1 answer
315 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
531 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 ...
Ender's user avatar
  • 121
1 vote
0 answers
183 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-...
PsySc0rpi0n's user avatar
-1 votes
1 answer
264 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 ...
JUAN FELIPE SUÁREZ BURGOS's 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 ...
Murch's user avatar
  • 73k
0 votes
1 answer
144 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 ...
Muoi Tran's user avatar
  • 427
2 votes
1 answer
116 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 ...
Murch's user avatar
  • 73k
1 vote
1 answer
126 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 ...
Mike's user avatar
  • 464
2 votes
1 answer
249 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 ...
Pedro's user avatar
  • 743
0 votes
1 answer
83 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 ...
foba's user avatar
  • 157
3 votes
1 answer
100 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 ...
foba's user avatar
  • 157
0 votes
2 answers
95 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 ...
Nitin Sawant's user avatar
1 vote
1 answer
430 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 ...
Hyunsoo's user avatar
  • 363
1 vote
1 answer
29 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 ...
Saxtheowl's user avatar
  • 2,770
1 vote
0 answers
46 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 ...
user674907's user avatar
0 votes
1 answer
268 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/...
Luka's user avatar
  • 117
0 votes
1 answer
236 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 ...
newbie's user avatar
  • 85