mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 18:03:12 +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 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);
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user