-
Notifications
You must be signed in to change notification settings - Fork 142
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: add reason to BlockResponse messages #607
feat: add reason to BlockResponse messages #607
Conversation
Codecov Report
@@ Coverage Diff @@
## main #607 +/- ##
==========================================
- Coverage 83.46% 83.17% -0.29%
==========================================
Files 154 154
Lines 7292 7287 -5
==========================================
- Hits 6086 6061 -25
- Misses 922 939 +17
- Partials 284 287 +3 |
The main idea behind this PR is to provide a message to peers once their request is rejected. There are several reasons why a request might be rejected. For example, the peer is not known (here), or they request a block that we don't have (here), etc. In my opinion, we should not consider a rejected request as a failure(or byzantine). It might be, but we can't consider it as such. Consequently, our current practice of increasing the failure counter is incorrect. In this context, we could merge the Please note that a reason could be added as a new parameter for the |
…d add reason as paramater of new block response message
request changes resolved, please review. |
…ason of ParseMessage
Description
add reason of rejection to block response
Related issue(s)
If this Pull Request is related to an issue, mention it here.