83
votes
Accepted
What is Geth's "light" sync, and why is it so fast?
I'll take my shot. Experts, please correct me.
"Full" Sync: Gets the block headers, the block bodies, and validates every element from genesis block.
Fast Sync: Gets the block headers, the block ...
59
votes
How to check my sync status on Geth 1.5.5, Raspberry Pi 3
Continuing to research, need to enter the geth node console to enter special commands. The following works:
geth attach
Sends user to the geth node console.
eth.syncing
Produces a result like ...
49
votes
How to check my sync status on Geth 1.5.5, Raspberry Pi 3
After running your normal geth --fast command you can open a new window and run the "geth attach" command as this will attach you to the javascript interface
$ geth attach
Then you can use this ...
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".
35
votes
Why is my node synchronization stuck/extremely slow at block 2,306,843?
Update Mar 5 2017
The state cleaning was announced by Vitalik Buterin in the tweet State clearing 100% complete dated 23:07 Nov 29 2016. This time corresponds to block 2,718,436.
The Clearing ...
26
votes
How can i tell if geth is done running?
The way I check is:
Find out what the last block is. https://etherchain.org
Start geth with console (https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options)
When geth is running enter the ...
20
votes
Accepted
What is Parity's “warp” sync, and why is it faster than Geth "fast"?
It's difficult to give an answer without just re-hashing the explanation on the Parity wiki...
The pertinent part is as follows:
These snapshots can be used to quickly get a full copy of the state at ...
12
votes
Accepted
What is knownStates?
during fast sync, web3.eth.syncing downloads the state trie.
knownStates is the number of trie nodes that the sync algo knows about
pulledStates is the number it already downloaded
there's no way to ...
11
votes
Accepted
What's the proper way to wait for a transaction to be mined and get the results?
Use a filter in order to watch for changes. In this case, for example, you could:
web3.eth.filter('latest', function(error, result){
if (!error) {
thisJS.setState({contractFunds:
web3....
11
votes
Accepted
How can I tell my progress and the number of peers I'm connected to when using geth to download blockchain?
You can use console in second terminal.
geth attach
and then in the console:
> eth.syncing
{
currentBlock: 27832,
highestBlock: 3520007,
startingBlock: 26025
}
> net.peerCount
9
10
votes
What is knownStates?
From the code:
// SyncProgress gives progress indications when the node is synchronising with
// the Ethereum network.
type SyncProgress struct {
StartingBlock uint64 // Block number where sync ...
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 ...
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 ...
9
votes
What's the proper way to wait for a transaction to be mined and get the results?
I created a Gist that polls the node until the transaction has been mined:
web3.eth.getTransactionReceiptMined = function (txnHash, interval) {
var transactionReceiptAsync;
interval = ...
9
votes
Syncing keeps behind the blockchain
Syncing the Ethereum blockchain with Geth in --fast mode has two phases running in parallel: block sync and state trie download. Both phases need to be done in order to have a full node and switch to ...
8
votes
Accepted
How do I find out how big the chain structure is for a particular block?
I experienced a similar issue while testing a clean local install of Mist Wallet and Ethereum.
This is very likely the result of the large amount of spam-generated state from the recent attacks (...
8
votes
Why is my node synchronization stuck/extremely slow at block 2,306,843?
On a practical note, just remove your blockchain and synchronize again. The blockchain bloat has been removed already.
Stop your node and/or close your Ethereum wallet.
Remove the chaindata.
for ...
8
votes
Accepted
How to fix "address already in use" error when attempting to launch geth console?
The error is most likely because the geth is already running and when you are trying to start another geth process using the same 30303 default port. If you know the datadir of the geth process which ...
8
votes
Accepted
Optimal sync mode for running an ethereum node that can process transactions
As per geth help document there are 3 ways you can do sync to network:
--syncmode full: Geth client will download Block header + Block data + full Validation [Is called eth full node]
--syncmode ...
8
votes
Accepted
geth rewinds chain on every startup
If you kill the geth instance or it crashes, it won't write the latest status of the cache, and will be forced to drop the "fast" sync state and fall back to the last "full" state on next startup.
...
8
votes
Accepted
Consensus Client vs Execution Client
The Execution Client listens and executes transactions and maintains the latest state and database of all Ethereum data, while the Consensus Client provides consensus (using PoS algorithm) from ...
7
votes
Synchronisation failed, dropping peer
I received this error as well.
I deleted everything in the folder /Users/name/Library/Ethereum/testnet/geth/chaindata and then restarted with the command geth --testnet --fast and it started working
7
votes
Accepted
Full node sync only preserve the last 128 history states
The behavior has changed with the release of geth v1.8.0
Fromt the release notes
Tracing and pruning: By default, state for the last 128 blocks kept in memory. Most states are garbage collected. ...
6
votes
Accepted
Is it safe to delete .ethash folder and its contents from system?
This file is part of the Ethereum mining computation and can be safely deleted from your machine. It is not part of the blockchain, but just a by-product of the blockchain.
If you do ever want to run ...
6
votes
Ethereum wallet keeps redownloading entire blockchain
Please check the link below, someone else had the same issue :
Downloading full blockchain again after using geth --fast on 0.7.4
6
votes
Accepted
Does installing geth download the entire blockchain?
It depends on the synchronization mode you choose. From this answer:
"Full" Sync: Gets the block headers, the block bodies, and validate every element from genesis block.
Fast Sync: Gets the block ...
6
votes
Accepted
Run mist without downloading blockchain
Using parity
You can have parity emulate geth's IPC (ie, pretend to be geth), by running:
parity --light --geth
If you want to be lazy, you can add to your configuration file:
[parity]
light = ...
6
votes
Web3ProviderEngine does not support synchronous requests while : Running migration: 2_deploy_contracts.js
web3.eth.blockNumber is synchronous.
You need to change this to web3.eth.getBlockNumber((err, res) => {})
Alternatively you can restructure this chain with promises:
const Promise = require('...
6
votes
Accepted
Synchronisation failed, dropping peer; err="retrieved hash chain is invalid"; message loop
The problem was the signers does not recognize some past block became invalid.
As a solution, first I have updated geth version of signer nodes to equal or above to v1.8.16. Later, I have rewind the ...
5
votes
Is it safe to delete .ethash folder and its contents from system?
Yes, you can delete that file.
1. What is .ethash
Ethash is Ethereum‘s Proof of Work hashing algorithm. The algorithm is GPU memory intensive to discourage CPU mining and future development of ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
synchronization × 577go-ethereum × 313
blockchain × 121
fast-sync × 72
mist × 57
openethereum × 48
wallets × 37
nodes × 35
transactions × 29
mining × 20
private-blockchain × 20
ropsten × 20
testnets × 16
light-clients × 16
ethereum-wallet-dapp × 15
ether × 14
peers × 14
full-node × 14
state-trie-pruning × 14
blocks × 12
geth-debugging × 12
balances × 11
warp-sync × 11
web3js × 10
clients × 10