Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Update IbftBlockHeigntManager to accept new message types. #737

Merged
merged 5 commits into from
Feb 1, 2019

Conversation

rain-on
Copy link
Contributor

@rain-on rain-on commented Feb 1, 2019

No description provided.

tmohay added 2 commits January 31, 2019 20:19
As future IBFT message will require only subsets of the data to be signed,
the message structures need to be modified such taht the signed-data
aspects can be a component of the message (Rather than the whole
message).

THis chnage starts this process by having a "flat" message which allows
clients to query the required round, and author of the message.
@rain-on rain-on requested review from jframe and CjHare February 1, 2019 01:22
import tech.pegasys.pantheon.ethereum.core.BlockHeader;

public interface BlockHeightManager {

void start();

void handleBlockTimerExpiry(ConsensusRoundIdentifier roundIdentifier);
void handleBlockTimerExpiry(final ConsensusRoundIdentifier roundIdentifier);
Copy link
Contributor

Choose a reason for hiding this comment

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

There's no point in final modifiers on interface methods, as they do nothing (the implementation has no obligation to use final).

Consistency; across the codebase interfaces don't have final for method parameters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

Copy link
Contributor

@CjHare CjHare left a comment

Choose a reason for hiding this comment

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

Drop the final modifiers from the interface and this change is good to merge!

@rain-on rain-on merged commit f6b317a into PegaSysEng:master Feb 1, 2019
@rain-on rain-on deleted the flatten_2 branch February 1, 2019 03:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants