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

CollectTipSetOfHeightAtLeast new OBO error #3027

Closed
ZenGround0 opened this issue Jul 8, 2019 · 2 comments · Fixed by #3250
Closed

CollectTipSetOfHeightAtLeast new OBO error #3027

ZenGround0 opened this issue Jul 8, 2019 · 2 comments · Fixed by #3250
Labels
C-bug Category: This is a bug P1 High - we should be working on this now or in the immediate future

Comments

@ZenGround0
Copy link
Contributor

Description

Because of the recent fix in #3026 we are now missing one tipset in the ancestor subchain in the case when the sample height falls on a null block. This bug should only be an issue in the case a PoSt is submitted at the very last possible block. In that case validators will incorrectly fail with "sample height out of range"

Acceptance criteria

  • Modify CollectTipSetsOfHeightAtLeast to handle this OBO error
  • Simplify the GetRecentAncestors code which has some complexity that will go away when making this change. Specifically we no longer need two iterators because CollectTipSetsOfHeightAtLeast will no longer drop a value needed by CollectAtMostNTipSets
  • Test this edge case

Risks + pitfalls

Where to begin

@anorth
Copy link
Member

anorth commented Jul 11, 2019

See also #3025

@ZenGround0
Copy link
Contributor Author

@deaswang to clarify a bit to help you with #3250 the major fix that this issue is tracking is to make CollectTipSetsOfHeightAtLeast return all tipsets up to and including the first tipset with a height less than or equal to the input height. The reason is that this change in PR #3026 modified the sampling behavior during validation to expect all of these tipsets but did not modify the sampling behavior during tipset collection.

tl;dr CollectTipSetsOfHeightAtLeast should traverse up to minHeight (as it does now) and additionally include the first tipset less than minHeight if there is no tipset at minHeight.

deaswang added a commit to filcloud/go-filecoin that referenced this issue Aug 21, 2019
deaswang added a commit to filcloud/go-filecoin that referenced this issue Aug 30, 2019
deaswang added a commit to filcloud/go-filecoin that referenced this issue Aug 30, 2019
@anorth anorth added the P1 High - we should be working on this now or in the immediate future label Sep 6, 2019
deaswang added a commit to filcloud/go-filecoin that referenced this issue Sep 9, 2019
deaswang added a commit to filcloud/go-filecoin that referenced this issue Sep 10, 2019
deaswang added a commit to filcloud/go-filecoin that referenced this issue Sep 10, 2019
deaswang added a commit to filcloud/go-filecoin that referenced this issue Sep 12, 2019
anorth pushed a commit that referenced this issue Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug P1 High - we should be working on this now or in the immediate future
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants