Skip to content

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

Open
317787106 wants to merge 2 commits intotronprotocol:developfrom
317787106:feature/remove_acurator_whitelist
Open

fix(actuator): remove actuator whitelist to avoid fork#6723
317787106 wants to merge 2 commits intotronprotocol: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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants