mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-01-03 09:29:44 +00:00
repeat wallet attempts after 2s
This commit is contained in:
parent
4761b71105
commit
b179203dd2
2 changed files with 3 additions and 2 deletions
|
@ -912,7 +912,8 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
|
||||||
// on error, create split output tx if not already created
|
// on error, create split output tx if not already created
|
||||||
if (openOffer.getSplitOutputTxHash() == null) {
|
if (openOffer.getSplitOutputTxHash() == null) {
|
||||||
int offerSubaddress = xmrWalletService.getOrCreateAddressEntry(openOffer.getId(), XmrAddressEntry.Context.OFFER_FUNDING).getSubaddressIndex();
|
int offerSubaddress = xmrWalletService.getOrCreateAddressEntry(openOffer.getId(), XmrAddressEntry.Context.OFFER_FUNDING).getSubaddressIndex();
|
||||||
log.warn("Splitting new output because spending scheduled output(s) failed for offer {}. Offer funding subadress={}", openOffer.getId(), offerSubaddress);
|
BigInteger balance = xmrWalletService.getBalanceForSubaddress(offerSubaddress);
|
||||||
|
log.warn("Splitting new output because spending scheduled output(s) failed, offerId={}, offerSubaddress={}, hasBalance={}", openOffer.getId(), offerSubaddress, balance.compareTo(BigInteger.ZERO) > 0);
|
||||||
splitOrSchedule(openOffers, openOffer, amountNeeded);
|
splitOrSchedule(openOffers, openOffer, amountNeeded);
|
||||||
resultHandler.handleResult(null);
|
resultHandler.handleResult(null);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -97,7 +97,7 @@ public abstract class TradeProtocol implements DecryptedDirectMessageListener, D
|
||||||
public static final int TRADE_STEP_TIMEOUT_SECONDS = Config.baseCurrencyNetwork().isTestnet() ? 60 : 180;
|
public static final int TRADE_STEP_TIMEOUT_SECONDS = Config.baseCurrencyNetwork().isTestnet() ? 60 : 180;
|
||||||
private static final String TIMEOUT_REACHED = "Timeout reached.";
|
private static final String TIMEOUT_REACHED = "Timeout reached.";
|
||||||
public static final int MAX_ATTEMPTS = 5; // max attempts to create txs and other wallet functions
|
public static final int MAX_ATTEMPTS = 5; // max attempts to create txs and other wallet functions
|
||||||
public static final long REPROCESS_DELAY_MS = 5000;
|
public static final long REPROCESS_DELAY_MS = 2000;
|
||||||
|
|
||||||
protected final ProcessModel processModel;
|
protected final ProcessModel processModel;
|
||||||
protected final Trade trade;
|
protected final Trade trade;
|
||||||
|
|
Loading…
Reference in a new issue