mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 06:41:41 +01:00
Update bonded role unlock time
Use the defined unlock time on mainnet, an arbitrarily low value on regtest for dev testing, and a relatively short time on testnet for testing purposes.
This commit is contained in:
parent
b4b5d0bb12
commit
f8385a96d6
1 changed files with 6 additions and 2 deletions
|
@ -17,6 +17,7 @@
|
|||
|
||||
package bisq.core.dao.state.model.governance;
|
||||
|
||||
import bisq.core.app.BisqEnvironment;
|
||||
import bisq.core.locale.Res;
|
||||
|
||||
import lombok.Getter;
|
||||
|
@ -76,8 +77,11 @@ public enum BondedRoleType {
|
|||
*/
|
||||
BondedRoleType(long requiredBondInBsq, int unlockTimeInDays, String link, boolean allowMultipleHolders) {
|
||||
this.requiredBond = requiredBondInBsq * 100;
|
||||
this.unlockTimeInBlocks = 5; // TODO for dev testing
|
||||
//this.unlockTimeInBlocks = unlockTimeInDays * 144;
|
||||
this.unlockTimeInBlocks = BisqEnvironment.getBaseCurrencyNetwork().isMainnet() ?
|
||||
unlockTimeInDays * 144 : // mainnet (144 blocks per day)
|
||||
BisqEnvironment.getBaseCurrencyNetwork().isRegtest() ?
|
||||
5 : // regtest (arbitrarily low value for dev testing)
|
||||
144; // testnet (relatively short time for testing purposes)
|
||||
this.link = link;
|
||||
this.allowMultipleHolders = allowMultipleHolders;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue