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

Refactor generation component to search for bid values by itself, without needing user input #25

Merged
merged 17 commits into from
Aug 31, 2019

Conversation

jules
Copy link
Contributor

@jules jules commented Aug 15, 2019

Fixes #2, and fixes #19, by making the generation component work much like the provisioner component does - the initiation code has been refactored to be more generic, allowing it to be used by both sides of the consensus codebase.

With this PR merged, a user would simply have to use startblockgenerator with no TxID supplied, to start generating blocks. And, much like the provisioner component, it can be used before sending a bid, as the generation component will find it later on if needed.

This MR should also fix #30.

@jules jules marked this pull request as ready for review August 19, 2019 13:29
@jules jules requested a review from ggoranov August 20, 2019 15:06
@codecov-io
Copy link

codecov-io commented Aug 20, 2019

Codecov Report

❗ No coverage uploaded for pull request base (testnet@3db6813). Click here to learn what that means.
The diff coverage is 51.4%.

Impacted file tree graph

@@            Coverage Diff             @@
##             testnet      #25   +/-   ##
==========================================
  Coverage           ?   55.02%           
==========================================
  Files              ?      118           
  Lines              ?     6197           
  Branches           ?        0           
==========================================
  Hits               ?     3410           
  Misses             ?     2194           
  Partials           ?      593
Impacted Files Coverage Δ
pkg/core/consensus/generation/proofgenerator.go 0% <0%> (ø)
pkg/core/consensus/user/bidlist.go 48% <20%> (ø)
pkg/core/consensus/generation/initiator.go 24% <24%> (ø)
pkg/core/consensus/generation/broker.go 44.14% <36.17%> (ø)
pkg/core/consensus/generation/bidretriever.go 87.5% <87.5%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3db6813...c61afca. Read the comment docs.

@ggoranov
Copy link
Contributor

@julesdesmit Do you think we can start adding more debug-level logging entries? E.g bidretriever.go is a good candidate for that as it should print logs when it finds corresponding bid.

@jules
Copy link
Contributor Author

jules commented Aug 23, 2019

@ggoranov Sure, good point. I will go over the changes and add logging.

@jules
Copy link
Contributor Author

jules commented Aug 26, 2019

@ggoranov added

@jules jules merged commit fdcff6c into testnet Aug 31, 2019
@jules jules deleted the update-bid branch August 31, 2019 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants