Questions tagged [peer]

computer participant in a peer-to-peer (P2P) network

15 questions
10
votes
1 answer

What are "white" and "gray" in the peer list?

When I use the "print_pl" command in simplewallet to see the peer list, the first attribute of each line is either "white" or "gray". What is the meaning of it?
Clement J.
  • 3,349
  • 2
  • 16
  • 35
9
votes
2 answers

How do I figure out what nodes I'm connected to and who is sending what to who?

When I type print_cn into the daemon, I see a lot of OUT and IN entries. Does OUT mean that I am sending information OUT to that peer, or is that peer sending information to me? Or is it a two-way connection? If I see an IN connection, is that…
Ginger Ale
  • 5,694
  • 2
  • 19
  • 46
8
votes
2 answers

Does each node have a maximum number of peers?

How many peers can each node be connected to simultaneously? Is the maximum the same as the number of full nodes on the Monero network? Are there any performance benefits of limiting the number of peers of a full node?
cooldude45
  • 824
  • 7
  • 18
7
votes
1 answer

Who controls the servers behind the IP addresses used for bootstrapping nodes for (initial) peer discovery?

Monero, like Bitcoin has some IPs hardcoded which are used for the initial peer discovery bootstrapping process, see https://github.com/monero-project/monero/blob/35d5aa36c9b2f4bba169e5947039bf7871649ee1/src/p2p/net_node.inl#L374-L392 Currently, the…
7
votes
1 answer

Can the Monero network survive if nodes never enable incoming peers? Is it a threat to decentralization?

In many/most cases, typing 'status' in the daemon will prompt the daemon to respond with "8+0" meaning that there are eight outgoing connections, and zero incoming connections. In this example, your node is receiving information only because it…
scoobybejesus
  • 5,515
  • 21
  • 42
4
votes
1 answer

How can I permanently ban a peer?

I have to repeatedly ban the same peer because it eventually (too soon) gets unbanned and then my daemon output spams me with "peer claims higher version that we think." This issue persists with this one peer, so I'd like to ban them permanently.
scoobybejesus
  • 5,515
  • 21
  • 42
3
votes
2 answers

How do I re-enable incoming connections?

Over the course of several upgrades, I have been running monerod for many months now, and I have always connected to incoming peers. For the last few months, it was always 8+37. After running git pull, then backing up my wallet and keys file, then…
scoobybejesus
  • 5,515
  • 21
  • 42
2
votes
1 answer

monerod doesn't connect to peers

I have installed the Monero GUI and it was giving some errors so I went back to the cli. When I run ./monerod everything seems to work fine but when I do status it gives me - Height: 1346603/1346603 (100.0%) on mainnet, not mining, net hash 99.90…
Peyto
  • 121
  • 5
2
votes
1 answer

How can I parse/print p2pstate.bin outside of the daemon?

Essentially I am looking for some method, e.g. using Python, that I can get results equivalent to the print_pl command that is run inside the daemon. I.e. I don't want to have to run the daemon to see the contents of p2pstate.bin in human readable…
user14547
  • 23
  • 2
2
votes
1 answer

How to manually add public nodes to your node?

I want to add peers from a list to my monero node in addition to the nodes to which I am already connected or are connected to me. I'm using monerod.conf file and add remote nodes (found here) to the…
Andrei
  • 367
  • 1
  • 9
2
votes
2 answers

Can an ISP swap out Monero's default peers? Would this be detectable?

As I understand, P2P networks work by first connecting to a fixed set of peers and learning about other peers based on them. Since those peers are hardcoded into the Monero software, could a malicious ISP intercept initial communications by…
Dr-Bracket
  • 503
  • 3
  • 22
2
votes
1 answer

What is the maximum number of incoming connections by default? 0 or unlimited?

Based on this question in 2016, there is no limit on the number of incoming connections. However, based on this commit in 2018, users can set a limit for this number. By default, when I don't set any limit for the arg_in_peers via RPC command, the…
Muoi Tran
  • 123
  • 2
2
votes
1 answer

How should I approach the issue that bans do not persist after ending the monerod process?

I've been manually banning peers that are (a) clogging up my logs and (b) taking away space that would otherwise be used for legitimate in_peer connections (which I have limited for data usage reasons). It is a little time consuming, but it's fine.…
scoobybejesus
  • 5,515
  • 21
  • 42
1
vote
1 answer

What purpose is served by the file p2pstate.bin?

There are times when it is advised to delete this file, since it will be recreated the next time monerod (or the GUI, running monerod within it) is started. But what's in this file? What does it do? Does deleting it do any harm?
scoobybejesus
  • 5,515
  • 21
  • 42
0
votes
1 answer

Why does a node try all grey peers to create a connection?

I am currently analysing the source code of Monero. If a node makes a new connection, it first checks what fraction of its current outgoing connections are to nodes in its white list. If it is above an expected fraction (default is 70 percent), then…
Jan Telov
  • 79
  • 3