File tree Expand file tree Collapse file tree
framework/src/test/java/org/tron/core/actuator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626import org .tron .core .db .Manager ;
2727import org .tron .core .exception .ContractExeException ;
2828import org .tron .core .exception .ContractValidateException ;
29- import org .tron .core .vm .config .VMConfig ;
3029import org .tron .protos .Protocol ;
3130import org .tron .protos .contract .AssetIssueContractOuterClass ;
3231import org .tron .protos .contract .SmartContractOuterClass .ClearABIContract ;
@@ -68,8 +67,8 @@ public class ClearABIContractActuatorTest {
6867 */
6968 @ BeforeClass
7069 public static void init () {
71- VMConfig .initAllowTvmConstantinople (1 );
7270 dbManager = context .getBean (Manager .class );
71+ dbManager .getDynamicPropertiesStore ().saveAllowTvmConstantinople (1 );
7372 }
7473
7574 /**
Original file line number Diff line number Diff line change 3030import org .tron .core .exception .ContractExeException ;
3131import org .tron .core .exception .ContractValidateException ;
3232import org .tron .core .exception .TronException ;
33- import org .tron .core .vm .config .VMConfig ;
3433import org .tron .protos .Protocol ;
3534import org .tron .protos .contract .AssetIssueContractOuterClass ;
3635import org .tron .protos .contract .SmartContractOuterClass .SmartContract ;
@@ -78,7 +77,7 @@ public static void init() {
7877 Arrays .fill (stats , (byte ) 1 );
7978 dbManager .getDynamicPropertiesStore ()
8079 .statsByVersion (ForkBlockVersionConsts .ENERGY_LIMIT , stats );
81- VMConfig . initVmHardFork ( true );
80+ CommonParameter . getInstance (). setBlockNumForEnergyLimit ( 0 );
8281 }
8382
8483 /**
@@ -93,7 +92,6 @@ public static void destroy() {
9392 } else {
9493 logger .info ("Release resources failure." );
9594 }
96- CommonParameter .setENERGY_LIMIT_HARD_FORK (false );
9795 }
9896
9997 /**
You can’t perform that action at this time.
0 commit comments