-
Notifications
You must be signed in to change notification settings - Fork 971
Sync fixes for fusaka-devnet-4
#7876
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
Closed
Closed
Changes from 11 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
1f776a4
Reduce number of head chains we sync to
pawanjay176 c8bbe47
Penalize if invalid EL block
pawanjay176 a8f6801
Priorotize status v2
pawanjay176 0144205
Request columns from global peer pool
pawanjay176 8e95a54
Revert "Reduce number of head chains we sync to"
jimmygchen 56ca5bf
Remove penalties for block sidecar coupling.
jimmygchen 5f38f31
Increase target peer count to 200.
jimmygchen 1465d72
Only send lookup requests to peers that are synced or advacned.
jimmygchen 1b8f0e4
Fix tests.
jimmygchen 9ce9318
Check for sync status for custody subnet discovery
jimmygchen cdc417f
Prevent sampling subnets from getting pruned if below min target thre…
jimmygchen ec7956b
Revert "Increase target peer count to 200."
jimmygchen a250daa
Clean up and refactor custody peer checks
jimmygchen 0437243
Merge branch 'unstable' into fusaka-devnet-4-revive
jimmygchen 832d862
Clippy
jimmygchen d8b6a99
Remove unnecessary test
jimmygchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
430 changes: 419 additions & 11 deletions
430
beacon_node/lighthouse_network/src/peer_manager/mod.rs
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -10,7 +10,8 @@ use beacon_chain::data_availability_checker::AvailabilityCheckError; | |||||||
| use beacon_chain::data_availability_checker::MaybeAvailableBlock; | ||||||||
| use beacon_chain::{ | ||||||||
| AvailabilityProcessingStatus, BeaconChainTypes, BlockError, ChainSegmentResult, | ||||||||
| HistoricalBlockError, NotifyExecutionLayer, validator_monitor::get_slot_delay_ms, | ||||||||
| ExecutionPayloadError, HistoricalBlockError, NotifyExecutionLayer, | ||||||||
| validator_monitor::get_slot_delay_ms, | ||||||||
| }; | ||||||||
| use beacon_processor::{ | ||||||||
| AsyncFn, BlockingFn, DuplicateCache, | ||||||||
|
|
@@ -774,7 +775,19 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> { | |||||||
| }) | ||||||||
| } | ||||||||
| ref err @ BlockError::ExecutionPayloadError(ref epe) => { | ||||||||
| if !epe.penalize_peer() { | ||||||||
| if matches!(epe, ExecutionPayloadError::RejectedByExecutionEngine { .. }) { | ||||||||
| debug!( | ||||||||
| error = ?err, | ||||||||
| "Invalid execution payload rejected by EE" | ||||||||
| ); | ||||||||
| Err(ChainSegmentFailed { | ||||||||
| message: format!( | ||||||||
| "Peer sent a block containing invalid execution payload. Reason: {:?}", | ||||||||
| err | ||||||||
| ), | ||||||||
| peer_action: Some(PeerAction::LowToleranceError), | ||||||||
| }) | ||||||||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pawanjay176 do we need this change? This may be due to optimistic EL right? lighthouse/beacon_node/beacon_chain/src/block_verification.rs Lines 430 to 432 in 522bd9e
|
||||||||
| } else if !epe.penalize_peer() { | ||||||||
| // These errors indicate an issue with the EL and not the `ChainSegment`. | ||||||||
| // Pause the syncing while the EL recovers | ||||||||
| debug!( | ||||||||
|
|
||||||||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
Need to think again about this change - this is used to determine if we have enough good peers when starting discovery query:
lighthouse/beacon_node/lighthouse_network/src/service/mod.rs
Lines 1093 to 1103 in c8bbe47
So the condition to push a
PeerManagerEvent::DiscoverSubnetPeersbelow must also satisfy thislighthouse/beacon_node/lighthouse_network/src/peer_manager/mod.rs
Lines 969 to 992 in a250daa
Otherwise it might result in pushing a
DiscoverSubnetPeersevent to network but then it gets ignored by network.