chore(p2p): Refactor & Test Bootnode Discovery Configs#2472
chore(p2p): Refactor & Test Bootnode Discovery Configs#2472
Conversation
🟡 Heimdall Review Status
|
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Keep the bootnode runtime flow close to the existing implementation while retaining the extracted config builders and tests for discv5 port binding. Co-authored-by: Codex <noreply@openai.com>
Keep the bootnode refactor and smoke tests without changing the existing discv5 listen config behavior. Co-authored-by: Codex <noreply@openai.com>
Replace bootnode config smoke tests with assertions that the extracted config helpers preserve NAT and discovery socket behavior. Co-authored-by: Codex <noreply@openai.com>
Make the bootnode discv4 helper test compare the extracted config against the builder expression it replaced across NAT variants. Co-authored-by: Codex <noreply@openai.com>
Move DEFAULT_DISCOVERY_V5_PORT into the test module so non-test base-execution-cli builds do not fail unused-imports. Co-authored-by: Codex <noreply@openai.com>
Review SummaryThis PR extracts inline discv4/discv5 config-building logic into dedicated methods on Critical
Minor
|
Summary
The config-building logic is extracted into dedicated
discv4_config()anddiscv5_config()methods onCommandto make each concern testable in isolation. Unit tests usingrstestare added to assert the discv5 discovery socket port matches--v5-addrand differs from--v4-addr.