Add dev values for lock time and proposal phase

This commit is contained in:
Manfred Karrer 2018-10-31 14:30:54 -05:00
parent d92e0dd5bd
commit bdbcc5e7fd
No known key found for this signature in database
GPG Key ID: 401250966A6B2C46
2 changed files with 5 additions and 2 deletions

View File

@ -23,6 +23,8 @@ import lombok.Getter;
// Data here must not be changed as it would break backward compatibility! In case we need to change we need to add a new
// entry and maintain the old one. Once all the role holders of an old deprecated role have revoked the role might get removed.
// Add entry to translation file "dao.bond.bondedRoleType...."
public enum BondedRoleType {
// admins
GITHUB_ADMIN(50_000, 60, "https://github.com/bisq-network/roles/issues/16", true),
@ -70,7 +72,8 @@ public enum BondedRoleType {
*/
BondedRoleType(long requiredBondInBsq, int unlockTimeInDays, String link, boolean allowMultipleHolders) {
this.requiredBond = requiredBondInBsq * 100;
this.unlockTimeInBlocks = unlockTimeInDays * 144;
this.unlockTimeInBlocks = 5; // TODO for dev testing
//this.unlockTimeInBlocks = unlockTimeInDays * 144;
this.link = link;
this.allowMultipleHolders = allowMultipleHolders;
}

View File

@ -110,7 +110,7 @@ public enum Param {
// TODO for dev testing we use short periods...
// Period phase ("11 blocks atm)
PHASE_UNDEFINED("0", ParamType.BLOCK),
PHASE_PROPOSAL("2", ParamType.BLOCK, 3, 3),
PHASE_PROPOSAL("4", ParamType.BLOCK, 3, 3),
PHASE_BREAK1("1", ParamType.BLOCK, 3, 3),
PHASE_BLIND_VOTE("2", ParamType.BLOCK, 3, 3),
PHASE_BREAK2("1", ParamType.BLOCK, 3, 23),