Skip to main content

Questions tagged [p2p]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
101 views

Structure of p2p network in Ethereum

We now know that the blockchain runs on a p2p network and that the information is driven by gossip algorithms. Is the structure on p2p used in ethereum a simple structure like you can find on simple ...
ryota uemura's user avatar
1 vote
0 answers
117 views

Ethereum network on TCP vs QUIC protocol (UDP-based) on data transferring

I'm new to the Geth p2p network (devp2p). Devp2p uses both TCP and UDP to run it's networking protocol. The TCP is for the data transferring between each node and the UDP is for nodes discovery. I ...
Nutchanon Chantrasup's user avatar
2 votes
0 answers
43 views

How can I determine which node mined a specific block in Ethereum?

I've amassed a collection of detailed information about various Ethereum nodes, as shown in the example below. Given this data and a particular block (either by its number or hash), how can I identify ...
Howard's user avatar
  • 41
0 votes
1 answer
35 views

After registry of both the consumer and prosumer properly, when I try to do the transaction, the transaction is reverted

//SPDX-License-Identifier:GPL-3.0 pragma solidity 0.8.13; contract trade{ constructor() { owner = msg. sender; } address owner; modifier onlyOwner { require(msg.sender == ...
Shekh Shihab Uddin's user avatar
0 votes
1 answer
451 views

Understanding how different networks work on a technical level

This is a weird question so bare with me: Assume I purchased some ETH from Coinbase and want to send it to a private wallet This basically means that Coinbase, as a CEX, provided my off-chain ...
Solidak's user avatar
  • 103
1 vote
0 answers
51 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
1 vote
0 answers
36 views

Ethereum old private messages site

I know this may be a long shot but I am looking for an old (was functional 1 - 2 years ago) messaging site on the ethereum network. Sob story begins I wrote my now ex a love message on this website ...
johan855's user avatar
  • 111
0 votes
0 answers
35 views

Possibility of spoofing miners in Ethereum

Ethereum uses node IDs to identify nodes uniquely and to route traffic between nodes based on the node discovery protocol (https://github.com/ethereum/devp2p/blob/master/discv4.md) built on Kademlia-...
Deepal's user avatar
  • 66
0 votes
1 answer
45 views

Complexity of IPFS files

I'm fairly new to IPFS and I was wondering how complex the files that you host in IPFS can be? Can you keep an event listener continually listening for input without downtime? Can you retrieve ...
dNyrM's user avatar
  • 948
0 votes
1 answer
349 views

Is it possible to use smart contracts to do money transfers? If so, how?

I've recently gotten into blockchain and I was having trouble understanding smart contracts. Is it possible to use smart contracts to do money transfers? Something similar to Venmo I guess. when I ...
bryant sanchez's user avatar
2 votes
1 answer
940 views

Sending transaction directly to miner on private network?

I am trying to understand how one node can send a transaction to another node (miner or full) directly rather than waiting P2P network to distribute it? Say I have two non-miner nodes A and B and one ...
Emrah's user avatar
  • 1,702
0 votes
1 answer
366 views

How can I easily get the Ethereum 2.0 network's fork digest and fork version?

Ethereum 2.0 nodes communicate through a libp2p network. Two indicators of talking to "correct" nodes on the same network are the "fork digest" and the "fork version" ...
q9f's user avatar
  • 33k
0 votes
0 answers
57 views

where to host my Java web app to fully decentralised?

I need a idea to host my webapp to be on some secure distributed network. my client doesn't want to deployed on aws or gcp. he wants it to be on decentralised network p2p. Your suggestion and advice ...
Cryptoineer's user avatar
1 vote
0 answers
52 views

Implement custom Ethereum client that asks Nodes for their connected neighbours

I'm new to Ethereum so please pardon my lack of knowledge on the field. For that reason my question might be too broad as well. I'm working on a project that visualises a topology graph of the whole ...
Mike Pham's user avatar
  • 111
3 votes
3 answers
2k 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
  • 33k
6 votes
1 answer
161 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
658 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
5 votes
1 answer
464 views

Why kademlia for p2p?

It seems pointless to me. I looked at the actual implementation. Kademila is used to discover peers, but there is no gained benefits. As when the node connects to peers, it simply just grab from the ...
user2584960's user avatar
2 votes
1 answer
289 views

Can non-default port (not 30303) be a reason for the small number of peers?

I have two ethereum full nodes in Rosten network with non-default port (not 30303). One has net.peerCount = 3, the next one has net.peerCount = 0 and I can't sync it more then 24 hours. Also, I have ...
Max Block's user avatar
  • 307
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
8 votes
2 answers
9k views

How do I bind geth to a specific network interface?

Currently geth listens on all interfaces (0.0.0.0:30303). I need to bind the main port 30303 to only a specific network interface in the device, which would normally be accomplished by specifying a ...
Protected's user avatar
1 vote
0 answers
115 views

In which components can geth be split? [closed]

I'm interested in how does the process "geth" (in a full node) work. I mean in which components can the geth conceptually be split. In my understanding there should be at least (conceptually) three ...
Briomkez's user avatar
  • 1,904
1 vote
1 answer
763 views

P2P file sharing nodes using blockchain?

I want to make a p2p file sharing program where there are hosts (nodes) and renters. Files are stored on the hosts' PCs. I could just have a central server providing the lookup information as to which ...
Nate's user avatar
  • 11
0 votes
1 answer
105 views

How does it the geth ethereum platform to automatically connect to the nodes that are in the main network of Ethereum?

I have tried to make connection between several nodes in my private network, but I do it with a enode direction, but Ethereum network does it without knowing my enode, I want to know what kind of p2p ...
Astrid Villanueva's user avatar
2 votes
0 answers
45 views

Is an accurate clock really required to participate in the Ethereum network?

The Ethereum documentation states: https://github.com/ethereum/homestead-guide/blob/master/source/network/connecting-to-the-network.rst#static-nodes-trusted-nodes-and-boot-nodes "An accurate clock ...
Paulo's user avatar
  • 183
0 votes
1 answer
739 views

p2p connection library for Blockchain example

I would like to implement the missing p2p communication for this example repo. Does anyone know the best library I could use to implement communication between nodes? Moreover a tutorial or guide to ...
underdog's user avatar
  • 1,190