From 963d92478dfeebf110de05cc43e64448a38e4e69 Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 4 Jan 2023 15:30:26 -0500 Subject: [PATCH] overwrite dispute agent with same address --- .../core/support/dispute/agent/DisputeAgentService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/bisq/core/support/dispute/agent/DisputeAgentService.java b/core/src/main/java/bisq/core/support/dispute/agent/DisputeAgentService.java index ec5bdcd0c6..5c85bdae6b 100644 --- a/core/src/main/java/bisq/core/support/dispute/agent/DisputeAgentService.java +++ b/core/src/main/java/bisq/core/support/dispute/agent/DisputeAgentService.java @@ -110,10 +110,8 @@ public abstract class DisputeAgentService { Map map = new HashMap<>(); for (T disputeAgent : disputeAgentSet) { NodeAddress disputeAgentNodeAddress = disputeAgent.getNodeAddress(); - if (!map.containsKey(disputeAgentNodeAddress)) - map.put(disputeAgentNodeAddress, disputeAgent); - else - log.warn("disputeAgentAddress already exists in disputeAgent map. Seems a disputeAgent object is already registered with the same address."); + if (map.containsKey(disputeAgentNodeAddress)) log.warn("disputeAgentAddress already exists in disputeAgent map. Seems a disputeAgent object is already registered with the same address."); + map.put(disputeAgentNodeAddress, disputeAgent); } return map; }