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

Start hbbft on demand #18

Merged
merged 2 commits into from
Jun 29, 2018
Merged

Start hbbft on demand #18

merged 2 commits into from
Jun 29, 2018

Conversation

vihu
Copy link
Member

@vihu vihu commented Jun 29, 2018

This allows us to start hbbft even with a limited number of transactions so we can have shorter blocks.

Includes:

  • add API to start hbbft on demand
  • a test for starting hbbft on demand
  • add max buffer size to the hbbft data record

* add a test for the same
* add max buffer size to the hbbft data record
src/hbbft.erl Outdated
@@ -22,6 +23,7 @@
j :: non_neg_integer(),
round = 0 :: non_neg_integer(),
buf = [] :: [binary()],
max_buf = infinity :: infinity,
Copy link
Member

Choose a reason for hiding this comment

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

We need a way to set this, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

right, will add to init for the time being.

@coveralls
Copy link

coveralls commented Jun 29, 2018

Pull Request Test Coverage Report for Build 188

  • 6 of 8 (75.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 91.46%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/hbbft.erl 6 8 75.0%
Totals Coverage Status
Change from base Build 181: -0.1%
Covered Lines: 332
Relevant Lines: 363

💛 - Coveralls

@Vagabond Vagabond merged commit 5fd3d06 into master Jun 29, 2018
@vihu vihu deleted the rg/limit-txns branch June 29, 2018 21:51
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