Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
💤 Files with no reviewable changes (6)
📝 WalkthroughWalkthroughThis PR removes the actuator whitelist feature across the codebase, including configuration fields, runtime validation checks, and filtering logic. It refactors Changes
Possibly related issues
Poem
🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What does this PR do?
Removes the
actuator.whitelistconfiguration and all related code. All actuator types are now unconditionally registered and executed on every node. Nodes with the old config key inconfig.confare unaffected — it is silently ignored after upgrade.Why are these changes required?
actuator.whitelistwas 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:
TransactionRegisterTest,ParameterTest— all passcheckstyleMain,checkstyleTest— no violationsFollow 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).Summary by cubic
Remove
actuator.whitelistand all related checks so every actuator is always registered and executed on all nodes. This prevents consensus splits from misconfiguration; the old key is ignored after upgrade.Refactors
actuator.whitelistconfig and parsing inArgs,ConfigKey, andCommonParameter.TransactionFactoryandRuntimeImpl(VM actuator).AbstractActuatorwith Lombok@Getterand dropped redundant getters.TransactionFactorymapsfinaland removed unused accessors; updated tests.Migration
actuator.whitelistfromconfig.conf; it is ignored.Written for commit a87cb0b. Summary will update on new commits.
Summary by CodeRabbit