dispute can be opened after 1d (mainnet), 30m (stagenet), or 1m (local)

This commit is contained in:
woodser 2022-12-21 11:39:12 +00:00
parent a3f0543e4f
commit 67a8ac1236
2 changed files with 4 additions and 5 deletions

View File

@ -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;

View File

@ -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