mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 22:45:44 +00:00
removed obsolete validation
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
parent
6aef6fe15e
commit
3e2182fffb
@ -406,12 +406,7 @@ class Planetmint(object):
|
||||
return True
|
||||
|
||||
def validate_compose_inputs(self, tx, current_transactions=[]) -> bool:
|
||||
compose_inputs = [i for i in tx.inputs if i.fulfills is not None]
|
||||
|
||||
if len(compose_inputs) == len(tx.inputs):
|
||||
raise ValidationError("compose transaction must have on input that fulfills None")
|
||||
|
||||
input_txs, input_conditions = self.get_input_txs_and_conditions(compose_inputs, current_transactions)
|
||||
input_txs, input_conditions = self.get_input_txs_and_conditions(tx.inputs, current_transactions)
|
||||
|
||||
self.validate_input_conditions(tx, input_conditions)
|
||||
|
||||
@ -419,9 +414,6 @@ class Planetmint(object):
|
||||
|
||||
self.validate_inputs_distinct(tx)
|
||||
|
||||
if len(tx.outputs) > 1:
|
||||
raise ValidationError("compose transactions only allow a single ouptut")
|
||||
|
||||
return True
|
||||
|
||||
def get_input_txs_and_conditions(self, inputs, current_transactions=[]):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user