Skip to content

Commit f82d152

Browse files
Merge pull request #6224 from yanghang8612/feat/reprioritize_internaltx_switches
func(cfg): reprioritize internal tx switches
2 parents 7e374ec + 7a5ae39 commit f82d152

File tree

1 file changed

+6
-3
lines changed
  • framework/src/main/java/org/tron/core/config/args

1 file changed

+6
-3
lines changed

framework/src/main/java/org/tron/core/config/args/Args.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -915,15 +915,18 @@ public static void setParam(final Config config) {
915915
PARAMETER.vmTrace =
916916
config.hasPath(Constant.VM_TRACE) && config.getBoolean(Constant.VM_TRACE);
917917

918-
if (config.hasPath(Constant.VM_SAVE_INTERNAL_TX)) {
918+
if (!PARAMETER.saveInternalTx
919+
&& config.hasPath(Constant.VM_SAVE_INTERNAL_TX)) {
919920
PARAMETER.saveInternalTx = config.getBoolean(Constant.VM_SAVE_INTERNAL_TX);
920921
}
921922

922-
if (config.hasPath(Constant.VM_SAVE_FEATURED_INTERNAL_TX)) {
923+
if (!PARAMETER.saveFeaturedInternalTx
924+
&& config.hasPath(Constant.VM_SAVE_FEATURED_INTERNAL_TX)) {
923925
PARAMETER.saveFeaturedInternalTx = config.getBoolean(Constant.VM_SAVE_FEATURED_INTERNAL_TX);
924926
}
925927

926-
if (config.hasPath(Constant.VM_SAVE_CANCEL_ALL_UNFREEZE_V2_DETAILS)) {
928+
if (!PARAMETER.saveCancelAllUnfreezeV2Details
929+
&& config.hasPath(Constant.VM_SAVE_CANCEL_ALL_UNFREEZE_V2_DETAILS)) {
927930
PARAMETER.saveCancelAllUnfreezeV2Details =
928931
config.getBoolean(Constant.VM_SAVE_CANCEL_ALL_UNFREEZE_V2_DETAILS);
929932
}

0 commit comments

Comments
 (0)