-
Notifications
You must be signed in to change notification settings - Fork 745
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
Do not request current child lookup peers #5724
Do not request current child lookup peers #5724
Conversation
7269d79
to
c55dd1b
Compare
c55dd1b
to
a356c75
Compare
Squashed commit of the following: commit a356c75 Author: dapplion <[email protected]> Date: Tue May 7 00:50:54 2024 +0900 Do not request current child lookup peers
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
3073087
to
f30dd96
Compare
} | ||
|
||
#[test] | ||
fn parent_block_and_blob_lookup_child_returned_first_blob_trigger() { |
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.
Not possible now, child is not requested until parent is imported
} | ||
|
||
#[test] | ||
fn parent_block_and_blob_lookup_child_returned_first() { |
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.
Not possible now, child is not requested until parent is imported
@@ -1287,19 +1317,6 @@ fn test_skip_creating_failed_parent_lookup() { | |||
rig.expect_no_active_lookups(); | |||
} | |||
|
|||
#[test] | |||
fn test_skip_creating_failed_current_lookup() { |
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.
Not applicable anymore. A peer makes no claim that it has imported the child block, so it should not be downscored
// Processing succeeds, now the rest of the chain should be sent for processing. | ||
rig.parent_block_processed_imported(block_root); | ||
rig.expect_parent_chain_process(); | ||
rig.parent_chain_processed_success(block_root, &[]); | ||
rig.expect_no_active_lookups(); | ||
} | ||
|
||
#[test] | ||
fn test_parent_lookup_empty_response() { |
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.
Duplicated test, child and parent logic are the same now
f30dd96
to
0b340b0
Compare
great simplification ! |
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at f37ffe4 |
Issue Addressed
Description of the problem ⬇️
Proposed Changes
Implement solution 1 from #5707
Todo
Closes #5707