remove assert
This commit is contained in:
parent
8276905ebd
commit
8e681ebf5b
@ -475,8 +475,8 @@ class Transaction(dict):
|
||||
return self
|
||||
|
||||
def add_output(self, amount, address=None, script_pub_key=None):
|
||||
assert address is not None or script_pub_key is not None
|
||||
assert not (address is None and script_pub_key is None)
|
||||
if address is None and script_pub_key is None:
|
||||
raise Exception("unable to add output, address or script required")
|
||||
assert type(amount) == int
|
||||
assert amount >= 0 and amount <= MAX_AMOUNT
|
||||
if script_pub_key:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user