Skip to content

Commit fbb019a

Browse files
committed
add VERSION_3_2_2 validation in 17th committee parameter
1 parent af51100 commit fbb019a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/tron/core/actuator/ProposalCreateActuator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ private void validateValue(Map.Entry<Long, Long> entry) throws ContractValidateE
219219
if (!dbManager.getForkController().pass(ForkBlockVersionConsts.ENERGY_LIMIT)) {
220220
throw new ContractValidateException("Bad chain parameter id");
221221
}
222+
if (dbManager.getForkController().pass(ForkBlockVersionConsts.VERSION_3_2_2)) {
223+
throw new ContractValidateException("Bad chain parameter id");
224+
}
222225
if (entry.getValue() < 0 || entry.getValue() > 100_000_000_000_000_000L) {
223226
throw new ContractValidateException(
224227
"Bad chain parameter value,valid range is [0,100_000_000_000_000_000L]");

0 commit comments

Comments
 (0)