Questions tagged [node-discovery]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
14 views

Which node does your transaction get sent to first for validation and broadcast when I transact on a defi platform?

I keep reading that "your own client node" gets the transaction first but what if you're not running your own node? Let's see I place I place an order to buy or sell on Uniswap, Sushiswap ...
1
vote
0answers
14 views

Is it possible to determine an Ethereum enode ID if you know the nodes IP/Port?

I have the IP/Port of a public node that I would like my node to peer with, but I don't know the enode ID. Is it possible to connect using just the IP/Port or discover the enode ID using this ...
1
vote
1answer
20 views

How to ensure the authenticity of the block header obtained by the light node

When I join the Ethereum network, I ask for block header data from neighboring nodes. How can I guarantee the reality of data?What if the neighbors conspired to give me bogus data?
0
votes
1answer
23 views

Private Blockchain Node Migration

I had a private ethereum blockchain with 1 node running in production. I accidentally ran a geth init genesis.json --datadir . command in my main node. Did this command overwrite the data directory ...
1
vote
1answer
163 views

Where are "pending" (newly submitted) transactions stored?

First of all, my terminology may be off, sorry about that. I understand how a blockchain holds data on transactions that have been "accepted" (i.e. a block has been mined). But if I decide to ...
2
votes
2answers
241 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
1answer
76 views

How to distinguish between ETH & ETC Node

I'm using the go-ethereum code (mainly discover (discv4) and rlpx) to write a node discovery tool. The Programm is using discv4 to discover nodes on the internet and putting the discovered nodes into ...
3
votes
1answer
70 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
0answers
44 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 ...
0
votes
1answer
191 views

How a node getting the last block?

When I call web3.eth.blockNumber from a specific full-node, where does it getting the last block? I know that the full-block holds part of the chain which he gets from gossiping with other full-nodes....
1
vote
0answers
52 views

RPC command to list current nodes

I am using Parity and I want to see a list of the IP addresses of every node my node is talking to. I am sure I have done this before but I can't remember how. Please share the curl/RPC command to ...
6
votes
1answer
132 views

Target addresses in Kademlia

I'm currently trying to understand the Kademlia protocol implemented in Ethereum in order to discover other peers in the network. If I understand these lines correctly, a nodes uses both random ...
2
votes
1answer
204 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
179 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
693 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
106 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
1k 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-...
2
votes
1answer
45 views

Do bootnodes require trust?

Say a random node accidentally connects to a bootnote which only lists malicious parties. How is this scenario prevented?
3
votes
1answer
482 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 ...
3
votes
1answer
1k 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 ...
3
votes
0answers
171 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
2answers
1k 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
1answer
384 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
2k 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 ...
2
votes
1answer
2k 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
331 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
2answers
2k 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
104 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
142 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
30 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
36 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
115 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
198 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
124 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
331 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
629 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
193 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
1k 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&...
4
votes
1answer
5k 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? ...
2
votes
2answers
336 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
1k 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
144 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
652 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 ...
7
votes
1answer
3k 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
407 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 ...
5
votes
1answer
507 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 ...
23
votes
2answers
8k 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
2k 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 ...