Questions tagged [discovery-protocol]
The discovery-protocol tag has no usage guidance.
21
questions
0
votes
1
answer
49
views
Where to find information on handshake messsages a new node needs to exchange with a peer?
So I am looking to dig further into how new nodes join the ethereum network. I am looking at studying this for both the execution and consensus layer.
Specifically I am interested in knowing:
How do ...
2
votes
2
answers
1k
views
How to retrieve IP address and Port from Ethereum Node Records (ENR)?
Here are four Ethereum Node Records (as per EIP-778):
- "enr:-Iu4QGuiaVXBEoi4kcLbsoPYX7GTK9ExOODTuqYBp9CyHN_PSDtnLMCIL91ydxUDRPZ-jem-...
3
votes
1
answer
153
views
Best Discovery Protocol implementation
Do you guys know an easy Discovery Protocol implementation that is not deprecated and is powerful enough. I've checked some, but all of them are not suitable for my task (reasons below).
Checked ...
3
votes
0
answers
166
views
How to get node info by 30303 port?
I need to create something like ethernodes.org or etherscan.io/nodetracker. First of all, I tried to implement Discovery Protocol by own, but after couple of minutes I realized that specs are too hard ...
2
votes
1
answer
568
views
How many nodes does Geth attempt to connect to by default?
Bitcoin Core tries to connect to 8 nodes by default. How many does Geth attempt to connect to for the eth protocol (normal network gossip)? Is there a set number in the first place?
3
votes
1
answer
2k
views
How to get Nodes on local Geth Private Network to Discover Peers OF THEIR PEERS
I am working on a private blockchain that consists of 4 nodes running on different ports.
I am trying to get each node to communicate its connections to its peers, so the network would be fully-...
3
votes
1
answer
776
views
Bootnode Discovery with external IPs instead of local ones
I would like to create a private testnet of mining nodes that external light clients can connect to. The caveat is that I'm doing so on Kubernetes (specifically via the excellent helm chart). So I can ...
1
vote
0
answers
250
views
Parity: Change port 30304?
If I want to change the discovery port from 30303 to XXXX I do "parity -port XXXX". But what if I want to change 30304/udp?
For example, maybe I have many computers NAT behind a firewall. I can do ...
1
vote
1
answer
369
views
Discovery Protocol Broadcasting [duplicate]
I set up a private Ethereum network at home using two computers to test smart contracts and I got them to find each other by getting the enode from one and using admin.addPeer in the console of the ...
4
votes
2
answers
623
views
How Geth and Parity resolve timestamps when validating block headers?
Geth and Parity nodes differ in a fundamental way when they validate block headers.
Background
According to the yellow paper
4.3 timestamp: A scalar value equal to the reasonable output of Unix's ...
1
vote
0
answers
89
views
Private Blockchain Reserved Nodes Disconnecting
Using Parity I have a private blockchain with 5 reserved nodes specified with --reserved-nodes /path/to/file.
After a few days of conectivity, the reserved nodes stop talking to each other. It is ...
1
vote
0
answers
267
views
Node connection timeout function?
I am trying multiple avenues to find out why my nodes in a private blockchain are losing connectivity over the course of about 18 hours.
So this question is:
Is there a part of the discovery ...
1
vote
0
answers
33
views
Do nodes lose connectivity if no network activity is happening?
I have a private blockchain that seems to work great, but over 18 hours, the nodes stop talking to each other, no matter how many I start with. So they go from 25/25 connections to 0.
Something I ...
1
vote
0
answers
42
views
Do peers rotate?
Once you have 25 peers, do you keep those same 25 peers (assuming the machines stay up)?
I'm having a problem (discussed other places) that would be more easily explained if part of the peer ...
1
vote
0
answers
440
views
Why nodes are not discovering each other in my private network?
I have created a private network with my own Genesis file. My private network has totally 4 systems(1 bootnode and other 3 are nodes).
I am running the bootnode in v4 using these two commands.
...
2
votes
1
answer
157
views
Sharing enodeURLs on a private blockchain
Given a private network in which each computer knows at least one IP address where there is a geth, parity or pyEth node/peer, what is a good way of sharing enode IDs? As far as I know, there is no ...
8
votes
2
answers
980
views
Why is Geth trying to connect to private network IP addresses (RFC1918)
I have geth running on a Hetzner machine and I got an abuse warning from the provider flagging that my machine is sending UDP/TCP packets to private network IP addresses like for instance 192.168.., ...
8
votes
2
answers
3k
views
Automatic peer discovery in a private blockchain
Is there a way to enable automatic peer discovery in a private network. As far as I know, the only way to connect to peers while operating on a private blockchain is to add them through addPeer() ...
8
votes
1
answer
1k
views
How does Ethereum client select which peers to synchronise with?
On start up the discovery protocol uses a Kademlia style approach to find peers. Thus we obtain a local routing table which holds the (IP address, UDP port, and node ID) of some online and alive peers....
11
votes
1
answer
2k
views
Why does Ethereum require use of UDP (and not TCP) for discovery?
I am aware of the advantages of UDP, but why not allow a choice? Since since Tor requires the use of TCP, why have Ethereum developers elected not to support TCP for discovery?
24
votes
2
answers
10k
views
What is an Enode ID in Ethereum?
What is the definition of an Enode ID or Enode URI? What is it used for and how is it made?