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: misc. issues with closing #78

Merged
merged 5 commits into from
Dec 25, 2023
Merged

fix: misc. issues with closing #78

merged 5 commits into from
Dec 25, 2023

Conversation

0xArdi
Copy link
Collaborator

@0xArdi 0xArdi commented Dec 22, 2023

This PR fixes multiple issues introduced with market_closing.

state = self.synchronized_data.update(
synced_data = cast(SynchronizedData, self.synchronized_data)

# Fix to ensure properties are present on the SynchronizedData
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't this already on main?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not on this state

initial_states: Set[AppState] = {
CollectRandomnessRound,
PostTransactionRound,
CloseMarketsRound,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the way it was previously wired, CloseMarkets can end up not being called. Now it is the first behaviour that is called after registration, in order to do that it must be a initial state.

@0xArdi 0xArdi merged commit 06967d6 into main Dec 25, 2023
6 checks passed
@0xArdi 0xArdi deleted the fix/close-markets branch December 25, 2023 10:20
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.

3 participants