-
Notifications
You must be signed in to change notification settings - Fork 0
pchain_network v0.6 #20
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
Conversation
src/conversions.rs
Outdated
|
|
||
| /// Check the distance between 2 peers. Subscribe to new peer's individual topic | ||
| /// if the distance is below [MAX_REPLICA_DISTANCE] | ||
| pub(crate) fn is_close_peer(peer_1: &PeerId, peer_2: &PeerId) -> bool { |
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.
I don’t think this should be in the conversions module.
Any reason why this function should be in the "conversions" module?
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.
Will shift this to peer module.
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.
I'm looking at PeerStartError::SystemConfigError. Its itemdoc says that the variant corresponds to the case where we "Failed to read from system configuration path". However, I don't see anywhere in the code where we read a file at a path.
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.
I've updated it with the correct error variant.
Network v0.6
"consensus" -> "hotstuff_rs"
base64url(public_addr) -> "hotstuff_rs/" + base64url(public_addr)