Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fast sync reverting to regular or fast sync downloading all the blocks from the beginning #3206

Closed
pencilvester opened this issue Oct 26, 2016 · 5 comments

Comments

@pencilvester
Copy link

System information

Geth version: geth version 1.4.18
OS & Version: OSX 10.12.1
Commit hash : (if develop)

Expected behaviour

After attempting a fast sync, and downloading the block receipts, headers, etc. and reaching the end of the chain, only the last blocks of the chain should be downloaded to complete the fast sync and thus, having an online node without the entire chain downloaded and spending relatively less time during the sync than with the normal sync

Actual behaviour

After downloading the block receipts, headers, etc. and reaching the end of the chain (I compared it continuously to the best block in https://ethstats.net/), there was never a console output that suggested that synchronization was complete. Instead the console output started to show every block was getting downloaded starting from #2.

I discussed this on reddit and was asked to report it here as a bug. I attach a picture of the console outputs I got:

image
image

Steps to reproduce the behaviour

~/Library/Application Support/Mist/binaries/Geth/unpacked/geth --cache 1024 --fast console

Backtrace

[backtrace]
@ghost
Copy link

ghost commented Oct 29, 2016

mine does the same thing... it just reset twice...... i haven't been able to use my wallet for 3 weeks now

this shows before it resets:
http://i.imgur.com/6E0GF1p.png

@karalabe
Copy link
Member

Yes, apparently the state bloat is so huge that is always aborts eventually at the end if you don't have a very strong internet connection, which leads to geth considering it's being fed a malicious state. I'll expand this attack detection so it's more robust and doesn't give up so easily.

@ghost
Copy link

ghost commented Oct 30, 2016

is it possible to eventually muscle threw the ddos blocks eventually? or are all blocks since 2,3xx,xxx until now considered ddos.... i have skylake con ssd hombre

@holiman
Copy link
Contributor

holiman commented Oct 30, 2016

Yes, it's possible to slog through the attack-blocks. I've done it with a HDD, went really slow for a while, but got through it eventually. I have 32 gig ram also, which helps.

@stale
Copy link

stale bot commented Mar 5, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status:inactive label Mar 5, 2018
@stale stale bot closed this as completed Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants