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: potential ban #5146

Merged

Conversation

SWvheerden
Copy link
Collaborator

Description

Fixes potential ban by making a check before we ban.

Motivation and Context

Under very rare circumstances it might be possible for the base_node to receive the blocks required to up its local metadata.
And here we can ban a local peer for providing inaccurate chain metadata although he could have provided the correct number, our chain could have advanced enough to not switch over.

Fixes: #5143

@stringhandler stringhandler merged commit 9892da6 into tari-project:development Jan 31, 2023
@SWvheerden SWvheerden deleted the sw_fix_potential_ban branch January 31, 2023 08:21
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

Successfully merging this pull request may close these issues.

Base node banned other base node for providing the claimed difficulty
2 participants