-
Notifications
You must be signed in to change notification settings - Fork 464
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
Deprecate FastBlocks
flag
#6295
Comments
Keeping FastBlocks in config while not using it in code might be confusing for cases (however unlikely) where both are set to different values. Also, maybe adding a warning message that FastBlock isn't being used and would be deprecated from the config. or/and to override FastBlocks value to that of FastSync |
Our nodes are not able to sync using FastSync if FastBlocks are disabled. So we can deprecate FastBlocks and use FastSync in all places where FastBlocks are used right now. There is no point in having it set to different values. |
So FastSync is used for syncing State (with SnapSync being a flavor of this sync), while FastBlocks is used for backward syncing of Blocks and Receipts. They are kind of disjointed. Both need a pivot (from CL or from config). Not sure if it is worth or unifying them, maybe just flip them to default to true. |
@LukaszRozmej the problem is that our node will not work with I don't see FastBlocks configuration use cases. It's just the way to misconfiguration of the nodes without additional value |
Ok, lets just nuke it then (not what PR did) |
So ignore fast block in the config, and always set it to true if fast sync is true? (the case of fastsync being false is irrelevant) Meaning keep the interfaces but switch off fastblock settings internally in code?
or
1 should imply 2, unless I'm missing something? |
@obasekiosa in my view, just replace all FastBlocks usages to FastSync, but don't remove the FastBlocks config option, because some nodes might use this configuration. We will mark it as a deprecated and in one release we could remove many deprecated config options |
@MarekM25 @marcindsobczak @LukaszRozmej I was able make the changes |
Is your feature request related to a problem? Please describe.
There are two flags in Sync config -
FastSync
andFastBlocks
. Second one is causing confusion sometimes - nodes are not able to sync ifFastSync
istrue
, butFastBlocks
not. I'm not familiar with any use case when one of this flags is true and the other is false.Describe the solution you'd like
Keep
FastBlocks
as part of the config to not break user setups, but don't use it on code - useFastSync
insteadDescribe alternatives you've considered
Keep it as it is
Additional context
I recently spent some time to figure out the cause of not syncing with message
Unable to find beacon header at height 1. This is unexpected, forcing a new beacon sync
Lack of
FastBlocks
=true
was the reasonThe text was updated successfully, but these errors were encountered: