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

Add a event stamp function for attaching causality information to RBC #24

Merged
merged 2 commits into from
Sep 21, 2018

Conversation

Vagabond
Copy link
Member

To provide some semblence of causality we allow the user of hbbft to
provide a 'stamp fun' that allows them to attach some causality
information to the Reliable Broadcast payload. This can be a timestamp,
a monotonic counter, a vector clock, whatever. The resulting 'stamp' is
encrypted along with the other transactions and is thus subject to the
consensus rules around agreeing on transactions.

@Vagabond Vagabond requested a review from vihu September 21, 2018 20:16
To provide some semblence of causality we allow the user of hbbft to
provide a 'stamp fun' that allows them to attach some causality
information to the Reliable Broadcast payload. This can be a timestamp,
a monotonic counter, a vector clock, whatever. The resulting 'stamp' is
encrypted along with the other transactions and is thus subject to the
consensus rules around agreeing on transactions.
@coveralls
Copy link

coveralls commented Sep 21, 2018

Pull Request Test Coverage Report for Build 253

  • 12 of 15 (80.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 86.341%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/hbbft.erl 12 15 80.0%
Totals Coverage Status
Change from base Build 249: 0.3%
Covered Lines: 354
Relevant Lines: 410

💛 - Coveralls

src/hbbft.erl Outdated
thingtosign :: undefined | erlang_pbc:element()
thingtosign :: undefined | erlang_pbc:element(),
stampfun :: undefined | {atom(), atom(), list()},
stamps = [] :: list()
Copy link
Member

Choose a reason for hiding this comment

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

Possible to make the type tighter here?

Copy link
Member

@vihu vihu left a comment

Choose a reason for hiding this comment

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

Looks good, just one comment about the type spec for the stamps in-line.

@vihu vihu merged commit 8534861 into master Sep 21, 2018
@vihu vihu deleted the adt/stamp-fun branch September 21, 2018 21:34
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

3 participants