elixir-omg
elixir-omg copied to clipboard
Earlier detections of empty payments list in /transaction.create
As discussed in this PR, it appears we could move the validation for sending an empty list of payments to the /transaction.create endpoint to an earlier step, so that it wouldn't have to reach the UtxoSelection module. We already have a check in place for too many outputs so it shouldn't be too hard to add one checking if the payments list is empty.
Hey @T-Dnzt, So we are getting rid of this test since the transaction is no more created after the earlier detection?