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

Force node to always be in syncing mode #3277

Closed
SWvheerden opened this issue Sep 1, 2021 · 1 comment
Closed

Force node to always be in syncing mode #3277

SWvheerden opened this issue Sep 1, 2021 · 1 comment

Comments

@SWvheerden
Copy link
Collaborator

Currently, nodes decide on their status on received ping and pong messages. These messages contain the sender's ChainMetaData.

Currently, its possible to change increase the accumulated_difficulty field, and then broadcast this out to every connected node. The following then happens:

  • The connected node then thinks it needs to sync to you.
  • It searches for a fork and "finds" on 0 blocks back.
  • It thinks you are both in sync, and exit out of syncing mode

By the current defaults of 10_000 messages/ 100s, it means you can force the node into syncing mode every 10ms. Doing this whole dance takes longer than that.
The older flood of 1000 messages /100s means you can send one every 100ms which is also not sufficient.

@sdbondi
Copy link
Member

sdbondi commented Nov 4, 2021

Closed in #3478

@sdbondi sdbondi closed this as completed Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants