-
Notifications
You must be signed in to change notification settings - Fork 673
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
feat: always broadcast a BlockResponse, even if globally accepted #5454
Conversation
I just want to make sure there's no DoS risk here. What stops the signer from broadcasting the same |
Yes, the signer only broadcasts once per proposal. This code path is also only after the signer gets a block validation response - so any DOS vector would already be spamming the node's block validation endpoint |
That's what I thought; just wanted to make sure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; please address @obycode's comment.
I've updated the code to not re-broadcast if the block is LocallyAccepted or LocallyRejected. So, this PR is essentially changing the check from "if globally X, ignore" to "if locally X, ignore" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Changes signer behavior to broadcast a BlockResponse, even if the signer has already marked the block as
GloballyAccepted
orGloballyRejected