[bisq-network/bisq] [WIP] Add cancel trade feature (#4514)

sqrrm notifications at github.com
Thu Sep 17 07:05:20 UTC 2020


@sqrrm commented on this pull request.



> @@ -833,6 +832,67 @@ public Transaction sellerSignsAndFinalizesPayoutTx(Transaction depositTx,
         return payoutTx;
     }
 
+    ///////////////////////////////////////////////////////////////////////////////////////////
+    // Canceled trade payoutTx
+    ///////////////////////////////////////////////////////////////////////////////////////////
+
+    public byte[] signCanceledTradePayoutTx(Transaction depositTx,
+                                            Coin buyerPayoutAmount,
+                                            Coin sellerPayoutAmount,
+                                            String buyerPayoutAddressString,
+                                            String sellerPayoutAddressString,
+                                            DeterministicKey myMultiSigKeyPair,
+                                            byte[] buyerPubKey,
+                                            byte[] sellerPubKey)
+            throws AddressFormatException, TransactionVerificationException {
+        Transaction preparedPayoutTx = createPayoutTx(depositTx, buyerPayoutAmount, sellerPayoutAmount, buyerPayoutAddressString, sellerPayoutAddressString);

This was just a general comment that long lines are hard to read.

-- 
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/4514#discussion_r490016431
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200917/e2ae9ea0/attachment.html>


More information about the bisq-github mailing list