Remove deposit tx output size check.

It is allowed that there are change outputs, for instance if taker
does not take full trade amount, there is a change output for maker.

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2022-11-03 14:14:32 -05:00
parent cba35b6342
commit 81be778df3
No known key found for this signature in database
GPG Key ID: 02AA2BAE387C8307

View File

@ -301,8 +301,6 @@ public final class RefundManager extends DisputeManager<RefundDisputeList> {
checkArgument(takerFeeTxFoundAtInputs, "takerFeeTx not found at depositTx inputs");
checkArgument(depositTx.getInputs().size() >= 2,
"DepositTx must have at least 2 inputs");
checkArgument(depositTx.getOutputs().size() == 1,
"DepositTx must have 1 input");
checkArgument(delayedPayoutTx.getInputs().size() == 1,
"DelayedPayoutTx must have 1 input");
TransactionOutPoint delayedPayoutTxInputOutpoint = delayedPayoutTx.getInputs().get(0).getOutpoint();