Skip to content

Commit

Permalink
Merge pull request #6224 from yanghang8612/feat/reprioritize_internal…
Browse files Browse the repository at this point in the history
…tx_switches

func(cfg): reprioritize internal tx switches
  • Loading branch information
CodeNinjaEvan authored Mar 6, 2025
2 parents 7e374ec + 7a5ae39 commit f82d152
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions framework/src/main/java/org/tron/core/config/args/Args.java
Original file line number Diff line number Diff line change
Expand Up @@ -915,15 +915,18 @@ public static void setParam(final Config config) {
PARAMETER.vmTrace =
config.hasPath(Constant.VM_TRACE) && config.getBoolean(Constant.VM_TRACE);

if (config.hasPath(Constant.VM_SAVE_INTERNAL_TX)) {
if (!PARAMETER.saveInternalTx
&& config.hasPath(Constant.VM_SAVE_INTERNAL_TX)) {
PARAMETER.saveInternalTx = config.getBoolean(Constant.VM_SAVE_INTERNAL_TX);
}

if (config.hasPath(Constant.VM_SAVE_FEATURED_INTERNAL_TX)) {
if (!PARAMETER.saveFeaturedInternalTx
&& config.hasPath(Constant.VM_SAVE_FEATURED_INTERNAL_TX)) {
PARAMETER.saveFeaturedInternalTx = config.getBoolean(Constant.VM_SAVE_FEATURED_INTERNAL_TX);
}

if (config.hasPath(Constant.VM_SAVE_CANCEL_ALL_UNFREEZE_V2_DETAILS)) {
if (!PARAMETER.saveCancelAllUnfreezeV2Details
&& config.hasPath(Constant.VM_SAVE_CANCEL_ALL_UNFREEZE_V2_DETAILS)) {
PARAMETER.saveCancelAllUnfreezeV2Details =
config.getBoolean(Constant.VM_SAVE_CANCEL_ALL_UNFREEZE_V2_DETAILS);
}
Expand Down

0 comments on commit f82d152

Please sign in to comment.