Skip to content

Commit c9e2b4b

Browse files
committed
add VERSION_3_2_2 validation
1 parent 0df1c97 commit c9e2b4b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,7 @@ private void validateValue(Map.Entry<Long, Long> entry) throws ContractValidateE
240240
break;
241241
}
242242
case (19): {
243-
// todo: use new block version
244-
if (!dbManager.getForkController().pass(ForkBlockVersionConsts.ENERGY_LIMIT)) {
243+
if (!dbManager.getForkController().pass(ForkBlockVersionConsts.VERSION_3_2_2)) {
245244
throw new ContractValidateException("Bad chain parameter id");
246245
}
247246
if (entry.getValue() < 0 || entry.getValue() > 100_000_000_000_000_000L) {

0 commit comments

Comments
 (0)