Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [node-discovery]

The tag has no usage guidance.

2
votes
1answer
30 views

Node Discovery Protocol - Node Table entries

I am currently trying to understand the node discovery protocol in ethereum. I found a few docs, where one of it is: https://github.com/ethereum/devp2p/blob/master/discv4.md It says, that the ...
1
vote
1answer
19 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?
6
votes
1answer
88 views

Is it possible to tell which node broadcast a transaction?

If I host my own node and send my transactions through this node, can somebody see that my address sends transactions through my pseudo-anonymous node? If yes, can someone set up a watcher that ...
0
votes
1answer
28 views

how do I know which node picks up my transaction? in general, how is a node assigned to broadcast a specific transaction?

How do I know what node is broadcasting my transaction to the network? how can i get more information about this node? for example, how do i know if the node is a geth or parity node? does it matter?
1
vote
1answer
206 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-...
1
vote
1answer
30 views

Do bootnodes require trust?

Say a random node accidentally connects to a bootnote which only lists malicious parties. How is this scenario prevented?
1
vote
0answers
119 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
1answer
254 views

How Are Transactions/Blocks Broadcasted

In Ethereum, when a node ‘broadcasts’ a transaction or block, what algorithm is used to broadcast that transaction or block to all the nodes? Also, how does this algorithm discover peers? What are ...
1
vote
0answers
86 views

Is it necessary to have the UDP port open for an Ethereum private net?

An Ethereum node requires both TCP (listener) and UDP (discovery) port (usually 30303) open and reachable by other nodes. My question: is it possible to run a private network with my node only ...
5
votes
1answer
287 views

Geth: bootnode tool and --nodiscover

In Geth, if I use the --nodiscover option, my node won't be discovered by default from other nodes. Conversely, with bootnode tool implemented in geth, first I have to generate a key, then I have to ...
0
votes
0answers
44 views

Can bootnodes be change once they've been set on genesis?

Are the bootnodes declared in the genesis file part of the block? or can I release a new version of the genesis file with different bootnodes so new nodes can connect to the network?
0
votes
1answer
174 views

Different comportement when bootnodes are set in command line and in static-nodes.json

I had a weird issue which was : I have one bootnode: bootnode -nodekey boot.key -verbosity 9 -addr :30310 Now I want to run my peers on the command line and I want them to add my bootnode as a peer ...
1
vote
2answers
813 views

Does --nodekey work with geth or just bootnode?

In the options for geth I see --nodekey listed but I can't seem to get it to (re)generate an enode url when starting a full node. When starting a bootnode this works for me as expected. So should ...
0
votes
1answer
944 views

What is parity bootnode role in a private network an how should I setup it?

NOTE: I've found a bunch of answers concerning geth client, but I'm interested specifically in parity. I have the following private network spec: clients: Parity v1.9.2-beta consensus: aura I've ...
1
vote
1answer
278 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 ...
3
votes
2answers
756 views

Why is Geth ignoring --nodiscover?

I'm firing up a test network like so: geth --networkid=43766 --datadir ~/.ethereum/authchaintestnet/ --unlock b40474571297fd05ac82fd2994f45c977f3ca77a --password ~/.ethereum/authchaintestnet/...
2
votes
0answers
77 views

Private Network - Ethereum Peers not connecting to LXC Containers nodes

We have 4 Computers with LXC containers installed. We have 4 geth instances running on host PCs and 4 geth instances running on LXC containers. My issue is that the nodes on host PCs and LXC ...
1
vote
0answers
75 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
0answers
27 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
0answers
32 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 ...
3
votes
0answers
108 views

What would cause nodes on a private blockchain to gradually lose connectivity?

I have a private blockchain with 6 nodes, and a total of three miners. When I initialize the blockchain everything looks great and the nodes find each other starting with the bootnodes. After about ...
1
vote
1answer
159 views

Private Blockchain - Nodes Lose Connectivity

I have a private blockchain (using Parity) where initially, all the nodes talk to each other, but over time (usually 9-18 hours) they lose connectivity until they all drop off and have zero peers. ...
1
vote
0answers
92 views

Debugging failed peer discovery?

I have a small private dev network. There are three (Parity) nodes. One of them shows two peers. The other two each show one peer. One of the nodes showing only one peer is listed in the genesis ...
1
vote
0answers
250 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. ...
1
vote
2answers
383 views

How to have two geth full nodes communicate over ssh tunnel

I have a VPN separating two nodes, one which can access internet at large, one which cannot. I can VPN from the internet-accessing node (here called nodeA) through an intermediary server (here called ...
1
vote
0answers
174 views

How does Expanse handle peer discovery?

I am seeing a lot of posts that suggest that peer discovery isn't possible on private networks. Here is one: Automatic peer discovery in a private blockchain And another (less clear on this point): ...
1
vote
2answers
854 views

Defining “listen,” “listenaddr” and “discovery” ports from admin.nodeinfo?

f you type "admin.nodeInfo" at the javascript console, you will see: listenAddr: "[::]:<value>", name: "Geth/v1.6.1-stable-021c3c28/linux-amd64/go1.8.1", ports: { discovery: <value&...
3
votes
1answer
4k views

How do nodes find peers without bootnodes?

I know once a peer is added, it also communicates its own peers. But how is the first peer added? Do the nodes (Geth & Parity) have built-in bootnodes? Or is there a scanning method of some kind? ...
3
votes
1answer
179 views

Is there a way to export/import peers?

Every time I stop and re-start Geth, I wait for it to discover peers. Can I instead export my list of currently connected peers and use them as bootnodes in my next start? I know this list will act as ...
4
votes
1answer
800 views

Node discovery: unreachable bootnode in private distributed network

I am trying to create a private distributed network using Docker containers on Virtual Machines running ubuntu. When I run: bootnode --genkey $KEY_FILE --writeaddress bootnode --nodekey $KEY_FILE -...
2
votes
1answer
118 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 ...
3
votes
1answer
457 views

Adding nodes in private network of docker containers hosted in different VMs

I am trying to create a non-local private network with go-ethereum running on docker containers hosted in different Virtual Machines. I am having a hard time trying to make the nodes recognize each ...
6
votes
1answer
2k views

addPeer doesn't work

I've done this before a million times, but I can't figure out why I can't connect to a remote host anymore. I've setup a basic Ubuntu 16.04 VM on Digital Ocean, isntalled Geth on it, and started a ...
5
votes
1answer
343 views

Where can I find the DHT in my system?

Information about peers is stored in a Kademlia-like Distributed Hash Table in my node. Where is it stored? I know that admin.peers command gives me a list of nodes but I want to see the actual ...
6
votes
1answer
350 views

How many bootnodes are hardcoded into Ethereum clients?

Bootnodes are supposed to act as entry points for new nodes into the Ethereum network. How many such bootnodes are hard-coded into Ethereum clients? Also, Who maintains these bootnodes and what ...
17
votes
2answers
5k views

What are the peer discovery mechanisms involved in Ethereum?

There are several implementations of Ethereum clients. How do these clients find each other? What are the algorithms and peer-to-peer protocols involved in this peer discovery process?
8
votes
1answer
1k views

Can one use ethereum as a client over Tor?

Does ethereum work when there is only TCP available? Can one use ethereum as a client over Tor? It does not work for me. Using Whonix. So running the traffic over Tor is not an issue. Blockchain ...