Refactor:

- Rename XmrTransferProofService to XmrTxProofRequestService
This commit is contained in:
chimp1984 2020-08-30 19:38:05 -05:00
parent 0e2268d6fe
commit f3ad669fab
No known key found for this signature in database
GPG Key ID: 9801B4EC591F90E3
2 changed files with 7 additions and 7 deletions

View File

@ -55,7 +55,7 @@ public class XmrAutoConfirmationManager {
private final FilterManager filterManager; private final FilterManager filterManager;
private final Preferences preferences; private final Preferences preferences;
private final XmrTransferProofService xmrTransferProofService; private final XmrTxProofRequestService xmrTxProofRequestService;
private final AccountAgeWitnessService accountAgeWitnessService; private final AccountAgeWitnessService accountAgeWitnessService;
private final ClosedTradableManager closedTradableManager; private final ClosedTradableManager closedTradableManager;
private final FailedTradesManager failedTradesManager; private final FailedTradesManager failedTradesManager;
@ -70,7 +70,7 @@ public class XmrAutoConfirmationManager {
@Inject @Inject
private XmrAutoConfirmationManager(FilterManager filterManager, private XmrAutoConfirmationManager(FilterManager filterManager,
Preferences preferences, Preferences preferences,
XmrTransferProofService xmrTransferProofService, XmrTxProofRequestService xmrTxProofRequestService,
ClosedTradableManager closedTradableManager, ClosedTradableManager closedTradableManager,
FailedTradesManager failedTradesManager, FailedTradesManager failedTradesManager,
P2PService p2PService, P2PService p2PService,
@ -79,7 +79,7 @@ public class XmrAutoConfirmationManager {
) { ) {
this.filterManager = filterManager; this.filterManager = filterManager;
this.preferences = preferences; this.preferences = preferences;
this.xmrTransferProofService = xmrTransferProofService; this.xmrTxProofRequestService = xmrTxProofRequestService;
this.closedTradableManager = closedTradableManager; this.closedTradableManager = closedTradableManager;
this.failedTradesManager = failedTradesManager; this.failedTradesManager = failedTradesManager;
this.p2PService = p2PService; this.p2PService = p2PService;
@ -195,10 +195,10 @@ public class XmrAutoConfirmationManager {
trade.getDate(), trade.getDate(),
confirmsRequired, confirmsRequired,
serviceAddress); serviceAddress);
xmrTransferProofService.requestProof(xmrTxProofModel, xmrTxProofRequestService.requestProof(xmrTxProofModel,
result -> { result -> {
if (!handleProofResult(result, trade)) if (!handleProofResult(result, trade))
xmrTransferProofService.terminateRequest(xmrTxProofModel); xmrTxProofRequestService.terminateRequest(xmrTxProofModel);
}, },
(errorMsg, throwable) -> { (errorMsg, throwable) -> {
log.warn(errorMsg); log.warn(errorMsg);

View File

@ -33,12 +33,12 @@ import lombok.extern.slf4j.Slf4j;
* Manages the XMR transfers proof requests for multiple trades and multiple services. * Manages the XMR transfers proof requests for multiple trades and multiple services.
*/ */
@Slf4j @Slf4j
class XmrTransferProofService { class XmrTxProofRequestService {
private final Map<String, XmrTxProofRequest> map = new HashMap<>(); private final Map<String, XmrTxProofRequest> map = new HashMap<>();
private final Socks5ProxyProvider socks5ProxyProvider; private final Socks5ProxyProvider socks5ProxyProvider;
@Inject @Inject
private XmrTransferProofService(Socks5ProxyProvider provider) { private XmrTxProofRequestService(Socks5ProxyProvider provider) {
socks5ProxyProvider = provider; socks5ProxyProvider = provider;
} }