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

Cleanup BucketList Access #3957

Closed
wants to merge 0 commits into from
Closed

Conversation

SirTyson
Copy link
Contributor

@SirTyson SirTyson commented Oct 3, 2023

Description

Resolves #3842

This PR adds additional checks for MODE_ENABLES_BUCKETLIST. I don't think it is actually possible to access some of the modified code paths when MODE_ENABLES_BUCKETLIST == false, but I wanted to stay on the safe side since changes later on could cause these asserts to hit.

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

Copy link
Contributor

@marta-lokhova marta-lokhova left a comment

Choose a reason for hiding this comment

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

I think for catchup this is a bit trickier, since if the archives were published with the bucketlist enabled, then the local node catching up will fork. I think in this simulation mode, we should not catchup at all. So maybe we should set MODE_DOES_CATCHUP=false if the bucketlist is disabled?

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.

In-memory simulation mode crashes due to MODE_ENABLES_BUCKETLIST
3 participants