mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-22 19:49:32 +00:00
dispute can be opened after 1d (mainnet), 30m (stagenet), or 1m (local)
This commit is contained in:
parent
a3f0543e4f
commit
67a8ac1236
2 changed files with 4 additions and 5 deletions
|
@ -18,7 +18,6 @@
|
||||||
package bisq.core.btc.setup;
|
package bisq.core.btc.setup;
|
||||||
|
|
||||||
import bisq.core.btc.exceptions.InvalidHostException;
|
import bisq.core.btc.exceptions.InvalidHostException;
|
||||||
import bisq.core.btc.exceptions.RejectedTxException;
|
|
||||||
import bisq.core.btc.model.AddressEntry;
|
import bisq.core.btc.model.AddressEntry;
|
||||||
import bisq.core.btc.model.AddressEntryList;
|
import bisq.core.btc.model.AddressEntryList;
|
||||||
import bisq.core.btc.nodes.BtcNetworkConfig;
|
import bisq.core.btc.nodes.BtcNetworkConfig;
|
||||||
|
@ -46,7 +45,6 @@ import org.bitcoinj.core.Context;
|
||||||
import org.bitcoinj.core.NetworkParameters;
|
import org.bitcoinj.core.NetworkParameters;
|
||||||
import org.bitcoinj.core.PeerAddress;
|
import org.bitcoinj.core.PeerAddress;
|
||||||
import org.bitcoinj.core.PeerGroup;
|
import org.bitcoinj.core.PeerGroup;
|
||||||
import org.bitcoinj.core.RejectMessage;
|
|
||||||
import org.bitcoinj.utils.Threading;
|
import org.bitcoinj.utils.Threading;
|
||||||
import org.bitcoinj.wallet.DeterministicSeed;
|
import org.bitcoinj.wallet.DeterministicSeed;
|
||||||
import org.bitcoinj.wallet.Wallet;
|
import org.bitcoinj.wallet.Wallet;
|
||||||
|
|
|
@ -101,9 +101,10 @@ public final class PaymentMethod implements PersistablePayload, Comparable<Payme
|
||||||
// Static
|
// Static
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// time in blocks (average 10 min for one block confirmation
|
// time in ms for 1 day (mainnet), 30m (stagenet) or 1 minute (local)
|
||||||
//private static final long DAY = TimeUnit.HOURS.toMillis(24);
|
private static final long DAY = Config.baseCurrencyNetwork() == BaseCurrencyNetwork.XMR_LOCAL ? TimeUnit.MINUTES.toMillis(1) :
|
||||||
private static final long DAY = TimeUnit.MINUTES.toMillis(1); // TODO (woodser): changed to 1 minute for development, move to config?
|
Config.baseCurrencyNetwork() == BaseCurrencyNetwork.XMR_STAGENET ? TimeUnit.MINUTES.toMillis(30) :
|
||||||
|
TimeUnit.DAYS.toMillis(1);
|
||||||
|
|
||||||
// Default trade limits.
|
// Default trade limits.
|
||||||
// We initialize very early before reading persisted data. We will apply later the limit from
|
// We initialize very early before reading persisted data. We will apply later the limit from
|
||||||
|
|
Loading…
Reference in a new issue