|
40 | 40 | import haveno.common.ThreadUtils;
|
41 | 41 | import haveno.common.Timer;
|
42 | 42 | import haveno.common.UserThread;
|
| 43 | +import haveno.common.config.Config; |
43 | 44 | import haveno.common.crypto.Encryption;
|
44 | 45 | import haveno.common.crypto.PubKeyRing;
|
45 | 46 | import haveno.common.proto.ProtoUtil;
|
@@ -154,7 +155,7 @@ public abstract class Trade extends XmrWalletBase implements Tradable, Model {
|
154 | 155 | private static final long DELETE_AFTER_MS = TradeProtocol.TRADE_STEP_TIMEOUT_SECONDS;
|
155 | 156 | private static final int NUM_CONFIRMATIONS_FOR_SCHEDULED_IMPORT = 5;
|
156 | 157 | public static final int NUM_BLOCKS_DEPOSITS_FINALIZED = 30; // ~1 hour before deposits are considered finalized
|
157 |
| - public static final int NUM_BLOCKS_PAYOUT_FINALIZED = 720; // ~1 day before payout is considered finalized and multisig wallet deleted |
| 158 | + public static final int NUM_BLOCKS_PAYOUT_FINALIZED = Config.baseCurrencyNetwork().isTestnet() ? 60 : 720; // ~1 day before payout is considered finalized and multisig wallet deleted |
158 | 159 | protected final Object pollLock = new Object();
|
159 | 160 | private final Object removeTradeOnErrorLock = new Object();
|
160 | 161 | protected static final Object importMultisigLock = new Object();
|
@@ -957,7 +958,7 @@ public boolean isWalletConnectedToDaemon() {
|
957 | 958 | }
|
958 | 959 |
|
959 | 960 | public boolean isIdling() {
|
960 |
| - if (isPayoutUnlocked()) return true; // idle after payout unlocked |
| 961 | + if (isPayoutUnlocked() && !Config.baseCurrencyNetwork().isTestnet()) return true; // idle after payout unlocked (unless testnet) |
961 | 962 | return this instanceof ArbitratorTrade && isDepositsConfirmed() && walletExists() && pollNormalStartTimeMs == null; // arbitrator idles trade after deposits confirm unless overriden
|
962 | 963 | }
|
963 | 964 |
|
|
0 commit comments