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

How long is the first sync supposed to last?

Do following steps to check the sync state: 1.) open a new geth instance and type in geth attach 2.) now type in eth.syncing This shows you the "currentBlock" and the "highestBlock".
Kevin R.'s user avatar
  • 511
39 votes
Accepted

What are the valuable benefits of having a node?

[EDIT] this answer was edited to add more information about non monetary valuable benefits provided by a full node. This edit was triggered by one of @fraxture comment on this answer. TL;DR No, you ...
Nicolas Massart's user avatar
27 votes
Accepted

Get a peer list for my geth node

Use admin.peers to get a list of the currently connected peers: > admin.peers [{ caps: ["eth/61", "eth/62", "eth/63"], id: "...
J-B's user avatar
  • 8,941
27 votes
Accepted

How do Ethereum mining nodes maintain a time consistent with the network?

Ethereum nodes (regardless of mining) need to have an accurate time, otherwise they will not be able to connect to peers and to the network (https://github.com/ethereum/go-ethereum/wiki/Connecting-to-...
eth's user avatar
  • 85.9k
27 votes

What are the types of nodes in Ethereum?

A node is a device/program that communicates with the Ethereum network. Nodes are also known as clients. Software that can act as an Ethereum node include Parity and Go-ethereum (geth). This software ...
lungj's user avatar
  • 6,680
24 votes
Accepted

What is http://localhost:8545?

http://localhost:8545 is the RPC port of your locally running Ethereum node software. When running geth, the Go implementation of the Ethereum node software, the command line parameters to create and ...
BokkyPooBah's user avatar
  • 40.3k
22 votes

Get a peer list for my geth node

Paste this line of code into the geth console to get a more concise version: admin.peers.forEach(function(value){console.log(value.network.remoteAddress+"\t"+value.name)}) This will display ...
Jordan Mack's user avatar
22 votes

What's the difference between node and peer?

It's a language thing about the relationship. It's like "people" and "friends". It's not that friends aren't also people. We might say that people are friends because they have a certain relationship ...
Rob Hitchens's user avatar
  • 55.3k
20 votes
Accepted

are there "public" ethereum nodes? or any recommendations on hosting solutions?

Infura is the most prominent public Ethereum nodes. They run mainnet and many of the testnets. They also run IPFS servers. http://infura.io.
Thomas Jay Rush's user avatar
18 votes

CryptoCurrency NODE.js Web3 Ethereum - Can't connect to TESTRPC

If you are using the new web3.js 1.0.0-beta, then try this (all the syntax has changed, sigh). Tested with testrpc -d. > var Web3 = require('web3'); > var web3 = new Web3('http://localhost:8545'...
benjaminion's user avatar
  • 9,287
15 votes
Accepted

Difference between full node and bootstrap nodes in Ethereum?

Q: I know that when a new geth instance runs it connects to the bootstrap nodes. What I want to know that do other nodes download blockchain from the bootstrap nodes or nor? A: No. Regular nodes do ...
BokkyPooBah's user avatar
  • 40.3k
14 votes
Accepted

What are the types of nodes in Ethereum?

I think that Bitcoin wiki has a good article: https://en.bitcoin.it/wiki/Full_node its not for ethereum but the concept is pretty much the same. Full node is somebody connected to p2p network that ...
Visgean Skeloru's user avatar
13 votes
Accepted

Can incentive be provided for non-mining Ethereum nodes?

Currently there is indeed no monetary incentive to run a full node. It's done by enthusiasts that just do it for the fun of it, or by projects who are building on top of Ethereum and need access to ...
Péter Szilágyi's user avatar
13 votes

geth import vs copying chaindata

geth saves its internal states for the main network in the chaindata directory. You can find it in the directory: ~/.ethereum on linux ~/Library/Ethereum on OS X ~/AppData/Roaming/Ethereum It uses ...
Ellis's user avatar
  • 2,354
13 votes
Accepted

At any given time, how many nodes is my node connected to? As the number of nodes in the network increases, will communication between them be faster?

You can see the connected peers by typing admin.peers in the Geth console. The maximum number of peers is set using the -maxpeers n flag in Geth. There is a discovery process based on Kademlia for ...
JackWinters's user avatar
  • 3,423
13 votes

How to Compile and Deploy a Smart Contract without running a full node?

Install https://metamask.io/ and Navigate to https://remix.ethereum.org/ Click on settings -> choose your compiler (e.g. 0.4.19+commit.c4cbbb05). Note that optimization is unchecked. Login to metmask ...
Victory's user avatar
  • 1,231
12 votes
Accepted

Can chaindata be split across two (or more) locations?

Geth has a freezer as of v1.9 https://blog.ethereum.org/2019/07/10/geth-v1-9-0/ Freezer Wouldn’t it be amazing if we didn’t have to waste so much precious space on our expensive and sensitive SSDs to ...
eth's user avatar
  • 85.9k
11 votes

How many concurrent requests can an Ethereum node handle?

So we actually very, very rarely completely exploded. During big ICOs for instance we were seeing 200k transactions being sent via the MEW node in a single hour, which is about 55 TX/sec. Each ...
tayvano's user avatar
  • 16k
10 votes

Are there any public/free nodes to connect a Dapp front end?

You may use Infura as a "read only / signed transactions only" node. The use of the API is free: https://infura.io Your may recommend your users to use Metamask Browser extension to be able to ...
digitaldonkey's user avatar
10 votes

How long is the first sync supposed to last?

I think you should edit the question to ask, "How do I know when geth is done syncing?" The question you asked was vague, but I believe this is the answer you were after: Geth will continue running ...
Evan de la Cruz's user avatar
10 votes

How long is the first sync supposed to last?

Assuming you are using a Linux flavoured OS, you can check the sync status as well (run this as the user under which geth is running): $ geth --exec eth.syncing.currentBlock attach 3991639 If it's ...
tlex's user avatar
  • 146
9 votes
Accepted

What is the difference between a static node and a trusted node?

Won't add much than what you said apart from the reconnection feature ! According to this and this as you said : p2p.Server should be able to use a JSON file containing trusted node addresses. ...
euri10's user avatar
  • 4,640
9 votes
Accepted

How are contracts executed on nodes?

When a node is validating a block, transactions are executed sequentially, in the order specified by the block; this is necessary, since a block might contain multiple transactions that call the same ...
Nick Johnson's user avatar
  • 8,174
9 votes

How do Ethereum mining nodes maintain a time consistent with the network?

Here's the code I've found so far that deals with syncing time. It uses pool.ntp.org:123 as the time syncing source. From Go Ethereum - p2p/discover/ntp.go, lines 48-65: func checkClockDrift() { ...
BokkyPooBah's user avatar
  • 40.3k
9 votes

What's the difference between node and peer?

In my opinion : a network node is a connection point(endpoint) that can receive, create, store or send data along distributed network routes. In Ethereum it could be full or Lightweight. in case of ...
Badr Bellaj's user avatar
  • 18.8k
9 votes
Accepted

Parity Trace Issue: TraceDB resync required

This is a minor annoyance, parity db kill does not reset your user defaults. Have a look at this: $ cat ~/.local/share/io.parity.ethereum/chains/ethereum/user_defaults {"fat_db":false,"...
q9f's user avatar
  • 32.9k
9 votes

How big will the Ethereum state grow?

With the current block gas limit the chaindata grows 70 GB per year. The growth rate is limited by the block gas limit, which itself can grow and its growth is limited by the protocol (formula 45 in ...
medvedev1088's user avatar
8 votes

How can I find out what the highest block is?

there are 2 usefull scripts in https://github.com/lyricalpolymath/Ethereum-Scripts 1) show simple progress % with geth running, copy and paste this code in a terminal window to have a simple ...
user3498's user avatar
  • 735
8 votes

What is the difference between a static node and a trusted node?

Apparently, trusted nodes are nodes can be added even max peers reached but the node won't constantly try to connect to them like they will with static nodes. This is the only answer I've come across ...
tayvano's user avatar
  • 16k
8 votes
Accepted

How can I create a list of peers from my syncing geth node to manually paste into my non-syncing geth node using the admin.addPeer() command?

Run the following command in your syncing node to create a list of admin.addPeer(...) commands that you can paste into your non-syncing node: function getPeers() { admin.peers.forEach( function(e) {...
BokkyPooBah's user avatar
  • 40.3k

Only top scored, non community-wiki answers of a minimum length are eligible