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 Preferences preferences;
private final XmrTransferProofService xmrTransferProofService;
private final XmrTxProofRequestService xmrTxProofRequestService;
private final AccountAgeWitnessService accountAgeWitnessService;
private final ClosedTradableManager closedTradableManager;
private final FailedTradesManager failedTradesManager;
@ -70,7 +70,7 @@ public class XmrAutoConfirmationManager {
@Inject
private XmrAutoConfirmationManager(FilterManager filterManager,
Preferences preferences,
XmrTransferProofService xmrTransferProofService,
XmrTxProofRequestService xmrTxProofRequestService,
ClosedTradableManager closedTradableManager,
FailedTradesManager failedTradesManager,
P2PService p2PService,
@ -79,7 +79,7 @@ public class XmrAutoConfirmationManager {
) {
this.filterManager = filterManager;
this.preferences = preferences;
this.xmrTransferProofService = xmrTransferProofService;
this.xmrTxProofRequestService = xmrTxProofRequestService;
this.closedTradableManager = closedTradableManager;
this.failedTradesManager = failedTradesManager;
this.p2PService = p2PService;
@ -195,10 +195,10 @@ public class XmrAutoConfirmationManager {
trade.getDate(),
confirmsRequired,
serviceAddress);
xmrTransferProofService.requestProof(xmrTxProofModel,
xmrTxProofRequestService.requestProof(xmrTxProofModel,
result -> {
if (!handleProofResult(result, trade))
xmrTransferProofService.terminateRequest(xmrTxProofModel);
xmrTxProofRequestService.terminateRequest(xmrTxProofModel);
},
(errorMsg, throwable) -> {
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.
*/
@Slf4j
class XmrTransferProofService {
class XmrTxProofRequestService {
private final Map<String, XmrTxProofRequest> map = new HashMap<>();
private final Socks5ProxyProvider socks5ProxyProvider;
@Inject
private XmrTransferProofService(Socks5ProxyProvider provider) {
private XmrTxProofRequestService(Socks5ProxyProvider provider) {
socks5ProxyProvider = provider;
}