File tree Expand file tree Collapse file tree
common/src/test/java/org/tron/core/config/args Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -295,9 +295,6 @@ public void testShieldedApiModernKeyRespected() {
295295
296296 @ Test
297297 public void testShieldedApiLegacyKeyRespected () {
298- // Regression guard: reference.conf ships `allowShieldedTransactionApi = false`, which
299- // used to make the legacy-key fallback dead code. A user who only set the legacy key
300- // must still have their value honored.
301298 NodeConfig nc = NodeConfig .fromConfig (
302299 withRef ("node.fullNodeAllowShieldedTransaction = true" ));
303300 assertTrue (nc .isAllowShieldedTransactionApi ());
@@ -317,7 +314,8 @@ public void testShieldedApiLegacyKeyRespected() {
317314
318315 @ Test
319316 public void testShieldedApiModernKeyTakesPriorityOverLegacy () {
320- // Consistent with maxActiveNodesWithSameIp: legacy key presence wins over modern.
317+ // When both keys are set, the modern key wins; the legacy key is only used as fallback
318+ // when modern is absent.
321319 NodeConfig nc = NodeConfig .fromConfig (
322320 withRef ("node {\n "
323321 + " allowShieldedTransactionApi = true\n "
You can’t perform that action at this time.
0 commit comments