Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persitence of DAO state #1778

Merged
merged 9 commits into from Oct 18, 2018
3 changes: 1 addition & 2 deletions core/src/main/java/bisq/core/dao/state/period/DaoPhase.java
Expand Up @@ -47,8 +47,7 @@ public enum Phase {
BREAK2,
VOTE_REVEAL,
BREAK3,
RESULT,
BREAK4
RESULT
}


Expand Down
2 changes: 0 additions & 2 deletions core/src/main/resources/i18n/displayStrings.properties
Expand Up @@ -1355,8 +1355,6 @@ dao.phase.VOTE_REVEAL=Vote reveal phase
dao.phase.BREAK3=Break before result phase
# suppress inspection "UnusedProperty"
dao.phase.RESULT=Vote result phase
# suppress inspection "UnusedProperty"
dao.phase.BREAK4=Break before proposal phase

# suppress inspection "UnusedProperty"
dao.phase.separatedPhaseBar.PROPOSAL=Proposal phase
Expand Down
1 change: 0 additions & 1 deletion core/src/main/resources/i18n/displayStrings_fr.properties
Expand Up @@ -970,7 +970,6 @@ dao.phase.short.BREAK2=Break
dao.phase.short.VOTE_REVEAL=Reveal
dao.phase.short.BREAK3=Break
dao.phase.short.ISSUANCE=Issuance
dao.phase.short.BREAK4=Break

dao.proposal.type.COMPENSATION_REQUEST=Requête de compensation
dao.proposal.type.GENERIC=Generic proposal
Expand Down
Expand Up @@ -119,8 +119,7 @@ private SeparatedPhaseBars createSeparatedPhaseBars() {
new SeparatedPhaseBars.SeparatedPhaseBarsItem(DaoPhase.Phase.BREAK2, false),
new SeparatedPhaseBars.SeparatedPhaseBarsItem(DaoPhase.Phase.VOTE_REVEAL, true),
new SeparatedPhaseBars.SeparatedPhaseBarsItem(DaoPhase.Phase.BREAK3, false),
new SeparatedPhaseBars.SeparatedPhaseBarsItem(DaoPhase.Phase.RESULT, false),
new SeparatedPhaseBars.SeparatedPhaseBarsItem(DaoPhase.Phase.BREAK4, false));
new SeparatedPhaseBars.SeparatedPhaseBarsItem(DaoPhase.Phase.RESULT, false));
return new SeparatedPhaseBars(phaseBarsItems);
}

Expand Down
Expand Up @@ -447,7 +447,7 @@ public void applyProposalPayload(Proposal proposal) {
checkNotNull(paramComboBox, "paramComboBox must not be null");
paramComboBox.getSelectionModel().select(changeParamProposal.getParam());
checkNotNull(paramValueTextField, "paramValueTextField must not be null");
paramValueTextField.setText(String.valueOf(changeParamProposal.getParamValue()));
paramValueTextField.setText(bsqFormatter.formatParamValue(changeParamProposal.getParam(), changeParamProposal.getParamValue()));
} else if (proposal instanceof BondedRoleProposal) {
BondedRoleProposal bondedRoleProposal = (BondedRoleProposal) proposal;
checkNotNull(bondedRoleTypeComboBox, "bondedRoleComboBox must not be null");
Expand Down