MCPcopy
hub / github.com/raiden-network/raiden / is_already_existing_channel

Method is_already_existing_channel

raiden/api/python.py:358–372  ·  view source on GitHub ↗
(
        self,
        token_network_address: TokenNetworkAddress,
        partner_address: Address,
        block_identifier: BlockIdentifier = BLOCK_ID_PENDING,
    )

Source from the content-addressed store, hash-verified

356 return channels
357
358 def is_already_existing_channel(
359 self,
360 token_network_address: TokenNetworkAddress,
361 partner_address: Address,
362 block_identifier: BlockIdentifier = BLOCK_ID_PENDING,
363 ) -> bool:
364 proxy_manager = self.raiden.proxy_manager
365 proxy = proxy_manager.address_to_token_network[token_network_address]
366 channel_identifier = proxy.get_channel_identifier_or_none(
367 participant1=self.raiden.address,
368 participant2=partner_address,
369 block_identifier=block_identifier,
370 )
371
372 return channel_identifier is not None
373
374 def channel_open(
375 self,

Callers 1

channel_openMethod · 0.95

Calls 1

Tested by

no test coverage detected