Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions allways/cli/dendrite_lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,17 @@ def discover_validators(
try:
if not contract_client.is_validator(metagraph.hotkeys[uid]):
continue
except Exception:
pass
except Exception as e:
# #168: skip on RPC failure rather than silently including the
# axon. Mirrors the validator-side fix from #73/#92 — falling
# through to axons.append on an unverified hotkey leaks
# non-validators into the broadcast list and produces
# confusing rejections downstream.
bt.logging.debug(
f'Skipping uid={uid} hotkey={metagraph.hotkeys[uid][:12]}...: '
f'is_validator RPC failed: {e}'
)
continue
axons.append(axon)

return axons
Expand Down