Skip to content

Commit

Permalink
fix: handle missing passive order (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdummett authored Jul 24, 2024
1 parent 75890e8 commit 3aab028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vega_sim/scenario/common/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -4088,7 +4088,7 @@ def step(self, vega_state: VegaState):
self.vega.wait_for_datanode_sync()
passive_order = self.__get_order(self.__passive_reference)
aggressive_order = self.__get_order(self.__aggressive_reference)
if passive_order is None and aggressive_order is None:
if (passive_order is None) or (aggressive_order is None):
if self.vega.get_blockchain_time(in_seconds=True) < self.__start + 60:
return
logger.warning(
Expand Down

0 comments on commit 3aab028

Please sign in to comment.