def handle_send_secretrequest( raiden: "RaidenService", chain_state: ChainState, secret_request_event: SendSecretRequest ) -> None: # pragma: no unittest if reveal_secret_with_resolver(raiden, chain_state, secret_request_event): return secret_request_message = message_from_sendevent(secret_request_event) raiden.sign(secret_request_message) raiden.transport.send_async(secret_request_event.queue_identifier, secret_request_message)
def handle_send_secretrequest( raiden: "RaidenService", secret_request_event: SendSecretRequest ): if reveal_secret_with_resolver(raiden, secret_request_event): return secret_request_message = message_from_sendevent(secret_request_event) raiden.sign(secret_request_message) raiden.transport.send_async(secret_request_event.queue_identifier, secret_request_message)
def handle_send_secretrequest( raiden: "RaidenService", chain_state: ChainState, secret_request_event: SendSecretRequest, message_queues: Dict[QueueIdentifier, List[Message]], ) -> None: # pragma: no unittest if reveal_secret_with_resolver(raiden, chain_state, secret_request_event): return secret_request_message = message_from_sendevent(secret_request_event) raiden.sign(secret_request_message) message_queues[secret_request_event.queue_identifier].append(secret_request_message)