Questions tagged [node-discovery]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

Creating geth nodes in virtual machines

I have 2 nodes the first node is on my machine ( host ) with an address 192.168.1.4 the second node is on Virtual machine with an address 192.168.1.8 the ping working fine, but when I used this ...
Amxdz's user avatar
  • 1
1 vote
0 answers
34 views

ETH p2p node connection using socket Python

i trying to set connection with ETH node using devp2p, sockets and Python as a programming language. Every time i send request to node, i always receive empty byte string. What can i do to have ...
Kyrylo Mliievskyi's user avatar
0 votes
0 answers
16 views

Nodes can't connect to each other on virtual machine with public IP (direct internet) - Private

I created a local private chain. I created the 4 nodekey for each node. Each node is running in our datacenter with a public ip (direct internet access without NAT and without firewall at all). IP ...
SCAVO Technologies's user avatar
0 votes
1 answer
28 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
0 votes
0 answers
237 views

Node not connecting to static/trusted peers etherum geth [ public network ]

I followed all the steps of adding trusted and static peers: Manually adding the peers to configuration file config.toml Using addTrustedPeers and addPeers of the geth console set the --nodiscover ...
Malak's user avatar
  • 1
0 votes
1 answer
233 views

How to translate an Ethereum ENR address to an ENODE address?

We want to translate a database of Ethereum Node Record (ENR) addresses to their ENODE counterparts. How to convert an ENR address to an ENODE address?
Martin Monperrus's user avatar
0 votes
1 answer
30 views

How do clients and nodes download their data from the decentralised network?

I have always just take it that the nodes and clients will download the data from the "network". The full nodes will download the entire blockchain state while the light clients will ...
xenon's user avatar
  • 437
5 votes
2 answers
2k views

Private network nodes can't find peers

I have 4 nodes (each on a separate droplet on digital ocean) in a private network: bootnode miner1 miner2 jsonrpc Each node is initialized with geth --datadir ./data init ./genesis.json using the ...
Darth Thanatus's user avatar
1 vote
0 answers
55 views

How to increase block time in a fork of Ethereum?

I have questions about blocktime, please answer the ones you can. Help very appreciated! Do you know if it is possible for ethereum forks to increase the 15s block time to for instance 1 min block ...
Kevin Wad's user avatar
  • 317
0 votes
2 answers
299 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 ...
bloodynri's user avatar
  • 101
1 vote
0 answers
111 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 ...
P. Vaden's user avatar
1 vote
1 answer
27 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?
gxissun's user avatar
  • 15
0 votes
1 answer
72 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 ...
JustinZ's user avatar
  • 183
1 vote
1 answer
367 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 ...
maligree's user avatar
  • 113
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.6k
3 votes
1 answer
98 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 ...
Harrys Kavan's user avatar
3 votes
1 answer
146 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
159 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
0 votes
1 answer
943 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....
user3652172's user avatar
1 vote
0 answers
71 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 ...
stone.212's user avatar
  • 1,994
6 votes
1 answer
157 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 ...
Jan Telov's user avatar
2 votes
1 answer
290 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 ...
Donut's user avatar
  • 537
2 votes
1 answer
538 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
6 votes
1 answer
1k 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 ...
python_crypto_questions's user avatar
0 votes
1 answer
264 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?
i_am_not_ethereum'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
2 votes
1 answer
57 views

Do bootnodes require trust?

Say a random node accidentally connects to a bootnote which only lists malicious parties. How is this scenario prevented?
Paul Razvan Berg's user avatar
3 votes
1 answer
752 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
6 votes
1 answer
2k 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 ...
Nicholas's user avatar
  • 361
3 votes
0 answers
213 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 ...
rustyx's user avatar
  • 910
6 votes
2 answers
2k 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 ...
ActuallyLZ's user avatar
0 votes
1 answer
535 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 ...
sshmaxime's user avatar
  • 101
2 votes
2 answers
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 ...
BrassApparatus's user avatar
2 votes
1 answer
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 ...
Nikita Chebykin's user avatar
1 vote
1 answer
368 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
5 votes
2 answers
4k 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/...
J. Doe's user avatar
  • 111
2 votes
0 answers
135 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 ...
Aditya's user avatar
  • 151
1 vote
0 answers
252 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
3 votes
0 answers
120 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 ...
stone.212's user avatar
  • 1,994
1 vote
1 answer
212 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. ...
stone.212's user avatar
  • 1,994
1 vote
0 answers
134 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 ...
stone.212's user avatar
  • 1,994
1 vote
0 answers
428 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
1 vote
2 answers
823 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 ...
X Y's user avatar
  • 11
1 vote
0 answers
197 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): ...
stone.212's user avatar
  • 1,994
1 vote
2 answers
2k 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&...
stone.212's user avatar
  • 1,994
4 votes
1 answer
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? ...
jeff's user avatar
  • 2,540
2 votes
2 answers
631 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 ...
jeff's user avatar
  • 2,540
4 votes
1 answer
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 -...
Betty Sanchez's user avatar