def unassign(self): msg = message.ChannelUnassignMessage(number=self.number) response = self.node.evm.writeMessage(msg).waitForAck(msg) if response != RESPONSE_NO_ERROR: raise ChannelError('%s: could not unassign (0x%.2x).' % (str(self), response)) self.network = None
def unassign(self): msg = message.ChannelUnassignMessage(number=self.number) self.node.driver.write(msg.encode()) if self.node.evm.waitForAck(msg) != RESPONSE_NO_ERROR: raise ChannelError('Could not unassign channel.') self.is_free = True