mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
logical and rather than bitwise
This commit is contained in:
parent
3dad488344
commit
3aba164bfd
@ -446,14 +446,14 @@ def validate_fulfillments(signed_transaction):
|
||||
except (TypeError, ValueError, ParsingError):
|
||||
return False
|
||||
|
||||
# TODO: might already break on a False here
|
||||
is_valid = parsed_fulfillment.validate(serialize(fulfillment_message))
|
||||
|
||||
# if transaction has an input (i.e. not a `CREATE` transaction)
|
||||
# TODO: avoid instantiation, pass as argument!
|
||||
bigchain = bigchaindb.Bigchain()
|
||||
input_condition = get_input_condition(bigchain, fulfillment)
|
||||
is_valid &= parsed_fulfillment.condition_uri == \
|
||||
input_condition['condition']['uri']
|
||||
is_valid = is_valid and parsed_fulfillment.condition_uri == input_condition['condition']['uri']
|
||||
|
||||
if not is_valid:
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user