Skip to content

fix: skip axon when is_validator RPC fails in discover_validators#92

Open
nightmare0329 wants to merge 1 commit into
entrius:testfrom
nightmare0329:fix/discover-validators-rpc-failure-73
Open

fix: skip axon when is_validator RPC fails in discover_validators#92
nightmare0329 wants to merge 1 commit into
entrius:testfrom
nightmare0329:fix/discover-validators-rpc-failure-73

Conversation

@nightmare0329
Copy link
Copy Markdown
Contributor

Fixes #73

An exception from contract_client.is_validator() was caught with pass, which fell through to axons.append() — including the axon as if the whitelist check had passed. Replace pass with continue so a failing RPC is treated as unknown (exclude) rather than whitelisted (include).

Changes:

  • allways/cli/dendrite_lite.py — pass → continue in the is_validator exception handler

An exception in contract_client.is_validator() was caught with pass,
which fell through to axons.append(), including the axon as if the
whitelist check had passed. Replace pass with continue so RPC failures
are treated as unknown (exclude) rather than whitelisted (include).

Closes entrius#73

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nightmare0329
Copy link
Copy Markdown
Contributor Author

@LandynDev @FairyPigDev ready for review.

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.

discover_validators can include non-whitelisted axons when is_validator RPC fails

2 participants