Skip to content

Commit 527fc2d

Browse files
committed
feat(approving): convert the approving window configuration to chain governance
1 parent 2bcda33 commit 527fc2d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

actuator/src/main/java/org/tron/core/utils/ProposalUtil.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -846,11 +846,11 @@ public static void validator(DynamicPropertiesStore dynamicPropertiesStore,
846846
throw new ContractValidateException(
847847
"Bad chain parameter id [PROPOSAL_VOTING_WINDOW]");
848848
}
849-
if (value < MIN_PROPOSAL_VOTING_WINDOW
849+
if (value <= MIN_PROPOSAL_VOTING_WINDOW
850850
|| value > MAX_PROPOSAL_VOTING_WINDOW) {
851851
throw new ContractValidateException(
852-
"This value[PROPOSAL_VOTING_WINDOW] is only allowed to be greater than or equal "
853-
+ "to " + MIN_PROPOSAL_VOTING_WINDOW + " and less than or equal to "
852+
"This value[PROPOSAL_VOTING_WINDOW] is only allowed to be greater than "
853+
+ MIN_PROPOSAL_VOTING_WINDOW + " and less than or equal to "
854854
+ MAX_PROPOSAL_VOTING_WINDOW + "!");
855855
}
856856
break;
@@ -938,7 +938,7 @@ public enum ProposalType { // current value, value range
938938
ALLOW_STRICT_MATH(87), // 0, 1
939939
CONSENSUS_LOGIC_OPTIMIZATION(88), // 0, 1
940940
ALLOW_TVM_BLOB(89), // 0, 1
941-
PROPOSAL_VOTING_WINDOW(92); // (0, 10512000L]
941+
PROPOSAL_VOTING_WINDOW(92); // (0, 10512000]
942942

943943
private long code;
944944

0 commit comments

Comments
 (0)