[bisq-network/bisq] Use existing timer in unlockwallet(pwd, timeout) (#4558)

Stan notifications at github.com
Fri Sep 25 19:47:56 UTC 2020


@ghubstan commented on this pull request.



> @@ -86,21 +90,53 @@ public void getOffers(GetOffersRequest req,
     @Override
     public void createOffer(CreateOfferRequest req,
                             StreamObserver<CreateOfferReply> responseObserver) {
-        TransactionResultHandler resultHandler = transaction -> {
-            CreateOfferReply reply = CreateOfferReply.newBuilder().setResult(true).build();
+        CountDownLatch latch = new CountDownLatch(1);
+        try {
+            TransactionResultHandler resultHandler = transaction -> {
+                latch.countDown();

I need to wrap the return value in a `OfferInfo` proto before returning it to the CLI.  That's why I used a latch.  Is there a way to get at the offer return value in the TransactionResultHandler?

-- 
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/4558#discussion_r495198141
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200925/b3b246a0/attachment.html>


More information about the bisq-github mailing list