Penalize peer if missing blobs#6525
Closed
dapplion wants to merge 1 commit intosigp:unstablefrom
Closed
Conversation
jimmygchen
reviewed
Oct 22, 2024
| Error::InvalidBlobs { .. } | ||
| | Error::InvalidColumn { .. } | ||
| | Error::MissingBlobs | ||
| | Error::MissingCustodyColumns |
Member
There was a problem hiding this comment.
The category change makes sense but it doesn't look like we use this to determine peer penalty.
Related issue:
#4546
I think we'll need to handle BlockError::AvailabilityCheck in handle_failed_chain_segment:
Member
There was a problem hiding this comment.
it seems we use Jimmy, category() is called on:
lighthouse/beacon_node/network/src/sync/block_lookups/mod.rs
Lines 580 to 605 in 2e0eb6d
with Lion's change Error::MissingBlobs and Error::MissingCustodyColumns are now reported as ErrorCategory::Malicious instead of ErrorCategory::Internal which makes it so that those nodes get reported via report_peer
Member
|
This is now covered in #7352, closing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue Addressed
During range sync, if a peer replies with empty blobs we do not downscore that peer. We should.
Proposed Changes
Downscore peer if we can't match block and data when constructing an RpcBlock
The PRs below also move these two variants into not being internal