Skip to content

fix: nested config priority#5514

Merged
sbackend123 merged 1 commit into
masterfrom
fix/blockchain-rpc-config-conflict
Jun 24, 2026
Merged

fix: nested config priority#5514
sbackend123 merged 1 commit into
masterfrom
fix/blockchain-rpc-config-conflict

Conversation

@sbackend123

Copy link
Copy Markdown
Contributor

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

Fix conflict handling between flat and nested blockchain RPC config keys in YAML.

When both blockchain-rpc-endpoint and blockchain-rpc.endpoint were set in the same file, the node used the flat value instead of the nested one, and no warning was logged. Viper does not report nested keys via InConfig, and RegisterAlias caused the flat value to overwrite the nested one after the keys were linked.

Related to PR #5420

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):

AI Disclosure

  • This PR contains code that has been generated by an LLM.
  • I have reviewed the AI generated code thoroughly.
  • I possess the technical expertise to responsibly review the code generated in this PR.

@sbackend123 sbackend123 requested a review from acud June 23, 2026 13:30
@sbackend123 sbackend123 merged commit e9b6987 into master Jun 24, 2026
16 checks passed
@sbackend123 sbackend123 deleted the fix/blockchain-rpc-config-conflict branch June 24, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants