Skip to content

Finish PeerId inlining change#1413

Merged
tomaka merged 9 commits into
libp2p:masterfrom
tomaka:peerid-inlining
Jan 29, 2020
Merged

Finish PeerId inlining change#1413
tomaka merged 9 commits into
libp2p:masterfrom
tomaka:peerid-inlining

Conversation

@tomaka

@tomaka tomaka commented Jan 27, 2020

Copy link
Copy Markdown
Member

Supersedes #1230

Adds custom implementations of PartialEq and Hash for PeerIds so that they compare equal between hash algorithm.

This is intended to be removed at some point, because the hash algorithm should be derived in a predictable way from the public key.

@tomaka tomaka requested a review from twittner January 27, 2020 14:05
@tomaka

tomaka commented Jan 27, 2020

Copy link
Copy Markdown
Member Author

Substrate works after this change.

@twittner twittner left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Any particular reason why you did not use the property test from #1230 (comment)?

@tomaka

tomaka commented Jan 28, 2020

Copy link
Copy Markdown
Member Author

Any particular reason why you did not use the property test from #1230 (comment)?

I had forgotten about it.

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.

4 participants