Skip to content

fix(relayer): filter out validators with empty hosts#446

Merged
danwt merged 1 commit intomain-dymfrom
danwt/claude/filter-empty-validator-hosts
Jan 22, 2026
Merged

fix(relayer): filter out validators with empty hosts#446
danwt merged 1 commit intomain-dymfrom
danwt/claude/filter-empty-validator-hosts

Conversation

@danwt
Copy link
Copy Markdown

@danwt danwt commented Jan 22, 2026

Summary

  • The relayer was attempting to query all validators, including those with empty host strings (indicating inactive/offline validators)
  • This caused unnecessary HTTP request failures and error logs when validators had empty hosts configured
  • Now validators with empty hosts are filtered out before querying, while preserving original indices for correct signature/address correlation

Test plan

  • cargo build -p dymension-kaspa passes
  • cargo build -p relayer -p validator passes
  • Manual review of index preservation logic

🤖 Generated with Claude Code

The relayer was attempting to query all validators, including those
with empty host strings (indicating inactive/offline validators).
This caused unnecessary HTTP request failures and error logs.

Changes:
- hosts_escrow() and hosts_ism() now filter out empty hosts
- Original indices are preserved for correct signature/address correlation
- collect_with_threshold() now accepts (index, host) pairs to maintain
  index mapping for signature verification callbacks
- Error message clarifies count is of validators with non-empty hosts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@danwt danwt merged commit 33bee3d into main-dym Jan 22, 2026
7 of 11 checks passed
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.

1 participant