MCPcopy Create free account
hub / github.com/raiden-network/raiden / evaluate

Method evaluate

raiden/waiting.py:147–154  ·  view source on GitHub ↗
(
        self, chain_state: ChainState, channel_state: Optional[NettingChannelState]
    )

Source from the content-addressed store, hash-verified

145 target_states: Sequence[ChannelState]
146
147 def evaluate(
148 self, chain_state: ChainState, channel_state: Optional[NettingChannelState]
149 ) -> bool:
150 if channel_state is None:
151 # If the channel is settled, then it will disappear from
152 # chain_state and so channel_state will never be None.
153 return True
154 return channel.get_status(channel_state) in self.target_states
155
156
157@dataclass

Callers

nothing calls this directly

Calls 1

get_statusMethod · 0.80

Tested by

no test coverage detected