Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Remove HashMap<EngineId, ...> from consensus-gossip #5553

Merged
merged 3 commits into from
Apr 13, 2020

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Apr 7, 2020

cc #5265

Considering that each instance of GossipEngine concerns one engine ID, I cleaned this up and removed the HashMaps in favor of non-HashMaps.

The validator is no longer registered after initialization, but must be passed to new.

The reputation penalty for using an unknown engine ID has been removed, since this path can no longer be reached anyway, and we handle that situation in sc_network directly.

This is a first step towards cleaning up sc-network-gossip.

@tomaka tomaka added the A0-please_review Pull request needs code review. label Apr 7, 2020
@tomaka tomaka requested a review from mxinden April 7, 2020 08:42
@tomaka tomaka added the B0-silent Changes should not be mentioned in any release notes label Apr 7, 2020
Copy link
Contributor

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

👍 Thanks for cleaning this up!

@gavofyork gavofyork merged commit 48b8adb into master Apr 13, 2020
@gavofyork gavofyork deleted the consensus-gossip-one-engine branch April 13, 2020 07:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants