Skip to content

Commit 02bd1dc

Browse files
committed
adjust testnet constants
1 parent 5cc5509 commit 02bd1dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/haveno/core/trade/Trade.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model {
156156
public static final int NUM_BLOCKS_DEPOSITS_FINALIZED = 30; // ~1 hour before deposits are considered finalized
157157
public static final int NUM_BLOCKS_PAYOUT_FINALIZED = Config.baseCurrencyNetwork().isTestnet() ? 60 : 720; // ~1 day before payout is considered finalized and multisig wallet deleted
158158
public static final long DEFER_PUBLISH_MS = 25000; // 25 seconds
159-
private static final long IDLE_SYNC_PERIOD_MS = Config.baseCurrencyNetwork().isTestnet() ? 30000 : 1680000; // 28 minutes (monero's default connection timeout is 30 minutes on a local connection, so beyond this the wallets will disconnect)
159+
private static final long IDLE_SYNC_PERIOD_MS = Config.baseCurrencyNetwork().isTestnet() ? 60000 : 1680000; // 28 minutes (monero's default connection timeout is 30 minutes on a local connection, so beyond this the wallets will disconnect)
160160
private static final long MAX_REPROCESS_DELAY_SECONDS = 7200; // max delay to reprocess messages (once per 2 hours)
161-
private static final long CHECK_POOL_PERIOD_MS = 180000; // throttle fetching from tx pool since invalidation is unlikely
161+
private static final long CHECK_POOL_PERIOD_MS = Config.baseCurrencyNetwork().isTestnet() ? 45000 : 180000; // throttle fetching from tx pool since invalidation is unlikely
162162
private long lastCheckPoolTime = 0;
163163
protected final Object pollLock = new Object();
164164
private final Object removeTradeOnErrorLock = new Object();

0 commit comments

Comments
 (0)