Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [discovery-protocol]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
13 views

Where is the code for the ticketing system of DiscV5?

So my understanding from several sources is that discV5 has a ticketing mechanism for security. I went to the go-ethereum code to inspect the code. I was unable to find it... The best I could find was ...
whomaniac's user avatar
  • 203
0 votes
1 answer
81 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 ...
Finlay Weber's user avatar
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-...
q9f's user avatar
  • 32.9k
3 votes
1 answer
166 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 ...
Alex S.'s user avatar
  • 173
3 votes
0 answers
172 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 ...
Alex S.'s user avatar
  • 173
2 votes
1 answer
631 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?
Expectator's user avatar
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-...
3mrsh's user avatar
  • 93
3 votes
1 answer
838 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 ...
nambrot's user avatar
  • 131
1 vote
0 answers
254 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 ...
stone.212's user avatar
  • 1,994
1 vote
1 answer
371 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 ...
John Stanford's user avatar
4 votes
2 answers
632 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 ...
Phillip Goldberg's user avatar
1 vote
0 answers
93 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 ...
stone.212's user avatar
  • 1,994
1 vote
0 answers
282 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 ...
stone.212's user avatar
  • 1,994
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 ...
stone.212's user avatar
  • 1,994
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 ...
stone.212's user avatar
  • 1,994
1 vote
0 answers
445 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. ...
Srinivas Baride's user avatar
2 votes
1 answer
159 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 ...
Lee's user avatar
  • 8,558
8 votes
2 answers
1k 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.., ...
ivicaa's user avatar
  • 7,519
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() ...
galahad's user avatar
  • 3,920
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....
JackWinters's user avatar
  • 3,423
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?
Sam's user avatar
  • 368
24 votes
2 answers
11k 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?
Hudson Jameson's user avatar