crash ursula on invalid event dispatch.

pull/3475/head
KPrasch 2024-02-15 14:48:28 +01:00 committed by derekpierre
parent c16f93707a
commit 69bd09bfe3
No known key found for this signature in database
1 changed files with 7 additions and 2 deletions

View File

@ -25,6 +25,7 @@ from nucypher_core.ferveo import (
Transcript,
Validator,
)
from twisted.internet import reactor
from web3 import HTTPProvider, Web3
from web3.types import TxReceipt
@ -446,8 +447,12 @@ class Operator(BaseActor):
f"{self.checksum_address}|{self.wallet_address} "
f"is not a member of ritual {ritual_id}"
)
self.log.error(message)
return
try:
raise RuntimeError(message)
finally:
# log and stop reactor; this will crash the application.
self.log.critical(message)
return reactor.stop()
# check phase 1 contract state
if not self._is_phase_1_action_required(ritual_id=ritual_id):