[bisq-network/bisq] Improve Validation of Deposit Inputs (#5618)

chimp1984 notifications at github.com
Sat Jul 17 12:10:02 CEST 2021


@chimp1984 commented on this pull request.



> @@ -356,23 +356,46 @@ public static void validatePayoutTxInput(Transaction depositTx,
     }
 
     public static void validateDepositInputs(Trade trade) throws InvalidTxException {
-        // assumption: deposit tx always has 2 inputs, the maker and taker
-        if (trade == null || trade.getDepositTx() == null || trade.getDepositTx().getInputs().size() != 2) {
-            throw new InvalidTxException("Deposit transaction is null or has unexpected input count");
+        /*
+         * deposit tx usually has 2 inputs, the maker and taker

I do not have enough time atm to review it and my motivation to spend more time on it decreased due the way how it was presented. Hope some other dev can review it with the care required.  

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/5618#discussion_r671667343
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20210717/b9ee5f3a/attachment.htm>


More information about the bisq-github mailing list