mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
repeat wallet attempts after 2s
This commit is contained in:
parent
4761b71105
commit
b179203dd2
@ -912,7 +912,8 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
|
||||
// on error, create split output tx if not already created
|
||||
if (openOffer.getSplitOutputTxHash() == null) {
|
||||
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);
|
||||
resultHandler.handleResult(null);
|
||||
} 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;
|
||||
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 long REPROCESS_DELAY_MS = 5000;
|
||||
public static final long REPROCESS_DELAY_MS = 2000;
|
||||
|
||||
protected final ProcessModel processModel;
|
||||
protected final Trade trade;
|
||||
|
Loading…
Reference in New Issue
Block a user