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

Fix off-by-one in mkPipeliningDecision #1595

Closed
edsko opened this issue Feb 6, 2020 · 0 comments
Closed

Fix off-by-one in mkPipeliningDecision #1595

edsko opened this issue Feb 6, 2020 · 0 comments
Assignees
Labels
bug Something isn't working consensus issues related to ouroboros-consensus technical debt
Milestone

Comments

@edsko
Copy link
Contributor

edsko commented Feb 6, 2020

Currently mkPipelineDecision takes a BlockNo, but we might not have one (we might be at genesis). We should fix that, and then use that in consensus #1589 (comment) . This probably also will remove one use of the legacy tip API (#1587).

@edsko edsko added bug Something isn't working consensus issues related to ouroboros-consensus networking technical debt labels Feb 6, 2020
@mrBliss mrBliss added this to the S6 2020-02-13 milestone Feb 6, 2020
@mrBliss mrBliss self-assigned this Feb 6, 2020
iohk-bors bot added a commit that referenced this issue Feb 7, 2020
1597: Follow-up on #1589 r=mrBliss a=mrBliss

Fixes #1594 and #1595.

* ChainSyncClient: use WithOrigin BlockNo for MkPipelineDecision

* ChainDB: don't read the header at the ImmutableDB's tip on startup


Co-authored-by: Thomas Winant <thomas@well-typed.com>
@iohk-bors iohk-bors bot closed this as completed in 2ff3a38 Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working consensus issues related to ouroboros-consensus technical debt
Projects
None yet
Development

No branches or pull requests

2 participants