-
Notifications
You must be signed in to change notification settings - Fork 21
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 issues introduced by the benchmarking mode changes #363
Conversation
Accidentally removed in 9f772a3.
The synchronized data are utilized in the overridden `end_block` method. Properties of the decision maker abci's synchronized data need to be accessed.
58be324
to
fb02164
Compare
benchmarking_finished = False | ||
day_increased = False | ||
benchmarking_finished = None | ||
day_increased = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was causing an issue in the normal flow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still trying to understand why None is a valid value and False not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because otherwise the NONE event cannot ever be emitted from the round.
@@ -218,6 +219,7 @@ class DecisionMakerAbciApp(AbciApp[Event]): | |||
Event.DONE: SubscriptionRound, | |||
Event.NONE: FinishedWithoutDecisionRound, | |||
Event.NO_MAJORITY: SamplingRound, | |||
Event.ROUND_TIMEOUT: SamplingRound, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was causing an issue in the normal flow.
@@ -48,6 +48,7 @@ class SamplingRound(UpdateBetsRound): | |||
get_name(SynchronizedData.benchmarking_finished), | |||
get_name(SynchronizedData.simulated_day), | |||
) | |||
synchronized_data_class = SynchronizedData |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was causing an issue in the normal flow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still sampling is connected with two different SynchronizedData classes in two different abcis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you elaborate on that?
Fixes the issues introduced in #347 and replaces #362.