Skip to content

Commit 8fea4e7

Browse files
committed
change comment
1 parent 5b3cbc0 commit 8fea4e7

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

common/src/test/java/org/tron/core/config/args/NodeConfigTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)