Skip to content

fix(actuator): remove actuator whitelist to avoid fork#6723

Merged
kuny0707 merged 6 commits into
tronprotocol:developfrom
317787106:feature/remove_acurator_whitelist
May 8, 2026
Merged

fix(actuator): remove actuator whitelist to avoid fork#6723
kuny0707 merged 6 commits into
tronprotocol:developfrom
317787106:feature/remove_acurator_whitelist

Conversation

@317787106
Copy link
Copy Markdown
Collaborator

What does this PR do?

Removes the actuator.whitelist configuration and all related code. All actuator types are now unconditionally registered and executed on every node. Nodes with the old config key in config.conf are unaffected — it is silently ignored after upgrade. Closes #6666

Why are these changes required?

actuator.whitelist was designed for private-chain scenarios and is fundamentally incompatible with public-chain consensus. A node configured with a non-empty whitelist skips registering excluded actuator types at startup. When the network produces a block containing those transaction types, the configured node fails to execute them, its world state diverges from the network, and it forms a private fork. Removing this configuration eliminates the risk of consensus breakage caused by misconfiguration.

This PR has been tested by:

  • Unit Tests: TransactionRegisterTest, ParameterTest — all pass
  • Checkstyle: checkstyleMain, checkstyleTest — no violations

Follow up

None.

Extra details

TransactionRegister.registerActuator() was already updated in a prior PR to register all actuators unconditionally. This PR completes that cleanup by removing the whitelist enforcement that remained in the execution path (TransactionFactory, RuntimeImpl) and the associated config infrastructure (CommonParameter, Args, ConfigKey).

Copy link
Copy Markdown
Collaborator

@lxcmyf lxcmyf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small cleanup comment from review.

Comment thread common/src/main/java/org/tron/core/config/args/MiscConfig.java Outdated
Copy link
Copy Markdown
Collaborator

@yanghang8612 yanghang8612 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kuny0707 kuny0707 merged commit 54342dc into tronprotocol:develop May 8, 2026
12 checks passed
@github-project-automation github-project-automation Bot moved this to Done in java-tron May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Feature] Remove actuator.whitelist config and related logic to prevent chain fork

6 participants