(
self,
token_network_address: TokenNetworkAddress,
partner_address: Address,
block_identifier: BlockIdentifier = BLOCK_ID_PENDING,
)
| 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, |
no test coverage detected