mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +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;
|
||||
|
||||
import bisq.core.btc.exceptions.InvalidHostException;
|
||||
import bisq.core.btc.exceptions.RejectedTxException;
|
||||
import bisq.core.btc.model.AddressEntry;
|
||||
import bisq.core.btc.model.AddressEntryList;
|
||||
import bisq.core.btc.nodes.BtcNetworkConfig;
|
||||
|
@ -46,7 +45,6 @@ import org.bitcoinj.core.Context;
|
|||
import org.bitcoinj.core.NetworkParameters;
|
||||
import org.bitcoinj.core.PeerAddress;
|
||||
import org.bitcoinj.core.PeerGroup;
|
||||
import org.bitcoinj.core.RejectMessage;
|
||||
import org.bitcoinj.utils.Threading;
|
||||
import org.bitcoinj.wallet.DeterministicSeed;
|
||||
import org.bitcoinj.wallet.Wallet;
|
||||
|
|
|
@ -101,9 +101,10 @@ public final class PaymentMethod implements PersistablePayload, Comparable<Payme
|
|||
// Static
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// time in blocks (average 10 min for one block confirmation
|
||||
//private static final long DAY = TimeUnit.HOURS.toMillis(24);
|
||||
private static final long DAY = TimeUnit.MINUTES.toMillis(1); // TODO (woodser): changed to 1 minute for development, move to config?
|
||||
// time in ms for 1 day (mainnet), 30m (stagenet) or 1 minute (local)
|
||||
private static final long DAY = Config.baseCurrencyNetwork() == BaseCurrencyNetwork.XMR_LOCAL ? TimeUnit.MINUTES.toMillis(1) :
|
||||
Config.baseCurrencyNetwork() == BaseCurrencyNetwork.XMR_STAGENET ? TimeUnit.MINUTES.toMillis(30) :
|
||||
TimeUnit.DAYS.toMillis(1);
|
||||
|
||||
// Default trade limits.
|
||||
// We initialize very early before reading persisted data. We will apply later the limit from
|
||||
|
|
Loading…
Reference in a new issue