[bisq-network/bisq] Register dispute agents in apitest arbitrator daemon (#4462)
sqrrm
notifications at github.com
Wed Sep 2 14:51:21 UTC 2020
@sqrrm commented on this pull request.
I might not get what's going on, but why are there test methods in CoreDisputeAgentService.java?
> + 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() {
This seems odd, having all this test code in a non test class. Seems like part of this is useful for mainnet as well.
--
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/4462#pullrequestreview-480895478
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200902/7e7e3d15/attachment.html>
More information about the bisq-github
mailing list