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

checking hash info when syncing #746

Merged
merged 5 commits into from
Oct 1, 2020
Merged

checking hash info when syncing #746

merged 5 commits into from
Oct 1, 2020

Conversation

nikkolasg
Copy link
Collaborator

No description provided.

peers := make([]net.Peer, 0, len(req.GetNodes()))
for _, addr := range req.GetNodes() {
// XXX add TLS disable later
peers = append(peers, net.CreatePeer(addr, req.GetIsTls()))
}
info, err := chainInfoFromPeers(stream.Context(), d.privGateway, peers, d.log)
// TODO replace via a more independent chain manager that manages the
Copy link
Member

Choose a reason for hiding this comment

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

finish sentence

peers := make([]net.Peer, 0, len(req.GetNodes()))
for _, addr := range req.GetNodes() {
// XXX add TLS disable later
peers = append(peers, net.CreatePeer(addr, req.GetIsTls()))
}
info, err := chainInfoFromPeers(stream.Context(), d.privGateway, peers, d.log)
// TODO replace via a more independent chain manager that manages the
if err != nil {
return err
}
d.log.Debug("start_follow_chain", "fetched chain info", "hash", fmt.Sprintf("%x", info.Hash()))

// TODO UNCOMMENT WHEN HASH INCONSISTENCY FIXED
Copy link
Member

Choose a reason for hiding this comment

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

remove todo?

@willscott willscott merged commit c23577f into master Oct 1, 2020
@willscott willscott deleted the fix/hashcheck branch October 1, 2020 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants