[bisq-network/bisq] [WIP] Add mediator support (#3169)

Manfred Karrer notifications at github.com
Sat Aug 31 13:08:48 UTC 2019


ManfredKarrer commented on this pull request.



> +            log.warn("bannedDisputeResolvers=" + bannedDisputeResolvers);
+        Set<T> disputeResolverSet = getCollect(bannedDisputeResolvers);
+
+        Map<NodeAddress, T> map = new HashMap<>();
+        for (T disputeResolver : disputeResolverSet) {
+            NodeAddress disputeResolverNodeAddress = disputeResolver.getNodeAddress();
+            if (!map.containsKey(disputeResolverNodeAddress))
+                map.put(disputeResolverNodeAddress, disputeResolver);
+            else
+                log.warn("disputeResolverAddress already exist in disputeResolver map. Seems an disputeResolver object is already registered with the same address.");
+        }
+        return map;
+    }
+
+    @NotNull
+    protected abstract Set<T> getCollect(List<String> bannedDisputeResolvers);

Upps, was not intended. Will change it.

-- 
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/3169#discussion_r319723680
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190831/9876deeb/attachment.html>


More information about the bisq-github mailing list