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

chimp1984 notifications at github.com
Sat Aug 31 13:16:45 UTC 2019


chimp1984 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_r319723898
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190831/666577ec/attachment-0001.html>


More information about the bisq-github mailing list