File tree Expand file tree Collapse file tree
chainbase/src/main/java/org/tron/core/store Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -943,12 +943,6 @@ private DynamicPropertiesStore(@Value("properties") String dbName) {
943943 } catch (IllegalArgumentException e ) {
944944 this .saveDynamicEnergyMaxFactor (CommonParameter .getInstance ().getDynamicEnergyMaxFactor ());
945945 }
946-
947- try {
948- this .getAllowTvmShangHai ();
949- } catch (IllegalArgumentException e ) {
950- this .saveAllowTvmShangHai (CommonParameter .getInstance ().getAllowTvmShangHai ());
951- }
952946 }
953947
954948 public String intArrayToString (int [] a ) {
@@ -2769,12 +2763,10 @@ public void saveAllowTvmShangHai(long allowTvmShangHai) {
27692763 }
27702764
27712765 public long getAllowTvmShangHai () {
2772- String msg = "not found ALLOW_TVM_SHANGHAI" ;
27732766 return Optional .ofNullable (getUnchecked (ALLOW_TVM_SHANGHAI ))
27742767 .map (BytesCapsule ::getData )
27752768 .map (ByteArray ::toLong )
2776- .orElseThrow (
2777- () -> new IllegalArgumentException (msg ));
2769+ .orElse (CommonParameter .getInstance ().getAllowTvmShangHai ());
27782770 }
27792771
27802772 private static class DynamicResourceProperties {
You can’t perform that action at this time.
0 commit comments