mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Refactor:
- Rename XmrTransferProofService to XmrTxProofRequestService
This commit is contained in:
parent
0e2268d6fe
commit
f3ad669fab
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user