示例#1
0
文件: messages.py 项目: ms83/raiden
 def __init__(self, msg_or_echo, *args):
     if isinstance(msg_or_echo, SignedMessage):
         self.echo = msg_or_echo.hash
     else:
         assert ishash(msg_or_echo)
         self.echo = msg_or_echo
     super(BaseError, self).__init__(*args)
示例#2
0
 def __init__(self, msg_or_echo, *args):
     if isinstance(msg_or_echo, SignedMessage):
         self.echo = msg_or_echo.hash
     else:
         assert ishash(msg_or_echo)
         self.echo = msg_or_echo
     super(BaseError, self).__init__(*args)
示例#3
0
文件: messages.py 项目: ms83/raiden
 def __init__(self,  amount, expiration, hashlock):
     assert amount > 0
     assert ishash(hashlock)
     self.amount = amount
     self.expiration = expiration
     self.hashlock = hashlock
示例#4
0
 def __init__(self, amount, expiration, hashlock):
     assert amount > 0
     assert ishash(hashlock)
     self.amount = amount
     self.expiration = expiration
     self.hashlock = hashlock