Skip to content

fix: delegate _resolve_endpoint to resolve_network for consistent precedence (#1198)#1242

Open
alpurkan17 wants to merge 1 commit into
entrius:testfrom
alpurkan17:fix/1198-endpoint-delegate
Open

fix: delegate _resolve_endpoint to resolve_network for consistent precedence (#1198)#1242
alpurkan17 wants to merge 1 commit into
entrius:testfrom
alpurkan17:fix/1198-endpoint-delegate

Conversation

@alpurkan17
Copy link
Copy Markdown
Contributor

Summary

Refactor _resolve_endpoint() in miner commands to delegate to resolve_network() from issue_commands instead of duplicating the precedence logic. This fixes the stale ws_endpoint override bug (recognized config network now beats ws_endpoint) and ensures consistent endpoint resolution across all CLI commands.

Why this is better

Aspect PR #1200 (competitor) This PR
Approach Add 3-line guard Eliminate duplicate logic entirely
Consistency Miner commands fixed in isolation All commands share same resolution
Future bugs Duplicate logic can diverge again Single source of truth

Closes #1198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] gitt miner post and gitt miner check ignore configured network when ws_endpoint is also set

1 participant