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 store context #2161

Merged
merged 2 commits into from
Nov 13, 2023
Merged

Fix store context #2161

merged 2 commits into from
Nov 13, 2023

Conversation

stwiname
Copy link
Collaborator

Description

#2153 Moved the store into its own class, this resulted in changing of the closure/context meaning that when the block height (and operationStack) was set it would not be updated in the context of the store class. This was causing workers to fail to init because the block height was not yet set.

This PR adds a context to the Store so that it can use the dynamic values.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have tested locally
  • I have performed a self review of my changes
  • Updated any relevant documentation
  • Linked to any relevant issues
  • I have added tests relevant to my changes
  • Any dependent changes have been merged and published in downstream modules
  • My code is up to date with the base branch
  • I have updated relevant changelogs. We suggest using chan

@jiqiang90 jiqiang90 merged commit 9846ee6 into main Nov 13, 2023
1 of 2 checks passed
@stwiname stwiname deleted the fix-store-context branch March 21, 2024 23:32
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.

2 participants