mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +00:00
overwrite dispute agent with same address
This commit is contained in:
parent
be88f57e09
commit
963d92478d
1 changed files with 2 additions and 4 deletions
|
@ -110,10 +110,8 @@ public abstract class DisputeAgentService<T extends DisputeAgent> {
|
|||
Map<NodeAddress, T> 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue