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

fix(sync/paseo): Ignoring config value for min peer #4289

Closed
wants to merge 2 commits into from

Conversation

jimjbrettj
Copy link
Contributor

Changes

In the sync code, we do not send handshake messages until we have available workers that is >= minPeers. If we do not send handshakes we do not receive announces. When starting up syncing, we send a dummy handshake message so that we receive a block announce which we then use to set the target block.

This is okay, except that the config value for minPeers overrides the sync packages default and sets it to 0, and thus we get stuck waiting for block announces and syncing stalls because a target is never set.

Ideally, this is solved with something like #4257. However, given that #4257 introduced a regression and this is a very urgent issue, I have come up with a workaround to ignore the config value here and use the default sync package value.

Tests

go test -tags integration github.com/ChainSafe/gossamer

Issues

#4288

@jimjbrettj jimjbrettj added T-bug this issue covers unexpected and/or wrong behaviour. S-sync-paseo related to particular network syncing. P-critical this must be fixed immediately or contributors or users will be severely impacted. labels Oct 29, 2024
@haikoschol haikoschol enabled auto-merge (squash) October 30, 2024 03:15
@haikoschol
Copy link
Contributor

superseded by #4291

@haikoschol haikoschol closed this Oct 30, 2024
auto-merge was automatically disabled October 30, 2024 14:44

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-critical this must be fixed immediately or contributors or users will be severely impacted. S-sync-paseo related to particular network syncing. T-bug this issue covers unexpected and/or wrong behaviour.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants