<p></p>
<p><b>@ghubstan</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/bisq-network/bisq/pull/4462#discussion_r482579330">core/src/main/java/bisq/core/api/CoreDisputeAgentService.java</a>:</p>
<pre style='color:#555'>> +        this.keyRing = keyRing;
+        this.mediatorManager = mediatorManager;
+        this.refundAgentManager = refundAgentManager;
+        this.p2PService = p2PService;
+        setupListeners();
+    }
+
+    public Optional<Mediator> getMediator(NodeAddress nodeAddress) {
+        return mediatorManager.getDisputeAgentByNodeAddress(nodeAddress);
+    }
+
+    public Optional<RefundAgent> getRefundAgent(NodeAddress nodeAddress) {
+        return refundAgentManager.getDisputeAgentByNodeAddress(nodeAddress);
+    }
+
+    private boolean shouldRegisterTestArbitrationDisputeAgents() {
</pre>
<p>How about a new API method <code>registerdisputeagent [dispute-agent-type]</code> that does not work on mainnet?  It would throw an exception to a mainnet CLI, and the user would see an <code>Error: dispute agents must be registered in the Bisq UI</code> msg.</p>
<p>Headless regtest api test cases could use this method.</p>
<p>Sound OK?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq/pull/4462#discussion_r482579330">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJFFTNVY53CN7QB2SH26VT3SD3FCJANCNFSM4QR6N6FA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AJFFTNTILDIH3OTIFAXCRM3SD3FCJA5CNFSM4QR6N6FKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGODSYSBQI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq/pull/4462#discussion_r482579330",
"url": "https://github.com/bisq-network/bisq/pull/4462#discussion_r482579330",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>