Skip to content

Commit fdfddfc

Browse files
committed
fix enum ChainParameters
1 parent 81298f5 commit fdfddfc

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎src/main/java/org/tron/core/Wallet.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ public Protocol.ChainParameters getChainParameters() {
932932
.setKey("getUpdateAccountPermissionFee")
933933
.setValue(dbManager.getDynamicPropertiesStore().getUpdateAccountPermissionFee())
934934
.build());
935-
// ALLOW_TVM_CONSTANTINOPLE, // 1, 24
935+
// ALLOW_TVM_CONSTANTINOPLE, // 1, 30
936936
builder.addChainParameter(
937937
Protocol.ChainParameters.ChainParameter.newBuilder()
938938
.setKey("getAllowTvmConstantinople")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ private void validateValue(Map.Entry<Long, Long> entry) throws ContractValidateE
328328
}
329329
break;
330330
}
331-
case (28): {
331+
case (30): {
332332
if (entry.getValue() != 1) {
333333
throw new ContractValidateException(
334334
"This value[ALLOW_TVM_CONSTANTINOPLE] is only allowed to be 1");

‎src/main/java/org/tron/core/config/Parameter.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class NodeConstant {
3939
}
4040

4141
public class NetConstants {
42+
4243
public static final long GRPC_IDLE_TIME_OUT = 60000L;
4344
public static final long ADV_TIME_OUT = 20000L;
4445
public static final long SYNC_TIME_OUT = 5000L;
@@ -100,7 +101,7 @@ public enum ChainParameters {
100101
DEFERRED_TRANSACTION_FEE, // 100_000, 25
101102
CANCEL_DEFERRED_TRANSACTION_FEE, // 50_000, 26
102103
MAX_DEFERRED_TRANSACTION_PROCESS_TIME, // 100, 27
103-
ALLOW_TVM_CONSTANTINOPLE, // 1, 28
104+
ALLOW_TVM_CONSTANTINOPLE, // 1, 30
104105
// ONE_DAY_NET_LIMIT,
105106
// MAX_FROZEN_TIME,
106107
// MIN_FROZEN_TIME,

‎src/test/java/org/tron/core/actuator/ProposalCreateActuatorTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public void noWitness() {
232232
@Test
233233
public void invalidPara() {
234234
HashMap<Long, Long> paras = new HashMap<>();
235-
paras.put(29L, 10000L);
235+
paras.put(31L, 10000L);
236236
ProposalCreateActuator actuator =
237237
new ProposalCreateActuator(getContract(OWNER_ADDRESS_FIRST, paras), dbManager);
238238
TransactionResultCapsule ret = new TransactionResultCapsule();

0 commit comments

Comments
 (0)