Example #1
0
 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
Example #2
0
 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