Skip to content
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

Update P2P Service to Handle Local Metadata #5319

Merged
merged 21 commits into from
Apr 7, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions beacon-chain/sync/rpc_ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ func (r *Service) validateSequenceNum(seq uint64, id peer.ID) (bool, error) {
if err != nil {
return false, err
}
if md == nil {
return false, nil
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should actually return true then, we will need to request the peer's metadata in that case

}
if md.SeqNumber != seq {
return true, nil
}
Expand Down