Simplify search for participant for post_aggregation in MockCoordinatorAgent.

remotes/origin/v7.4.x
derekpierre 2024-01-29 21:24:41 -05:00 committed by Derek Pierre
parent f2dff32a33
commit 6c56dd2d9b
1 changed files with 1 additions and 5 deletions

View File

@ -159,11 +159,7 @@ class MockCoordinatorAgent(MockContractAgent):
self._get_staking_provider_from_operator(operator=operator_address)
or transacting_power.account
)
participant = None
for p in self._rituals[ritual_id].participants:
if p.provider == provider:
participant = p
break
participant = self.__find_participant_for_state_change(ritual_id, provider)
participant.aggregated = True
participant.decryption_request_static_key = bytes(participant_public_key)