Skip to content

[612] Implement node reputation scoring for decentralized RPC node selection#631

Open
Max-Owolabi wants to merge 1 commit into
Smartdevs17:mainfrom
Max-Owolabi:fix/612-implement-node-reputation-scoring-for-decentralized-rpc-node-selection
Open

[612] Implement node reputation scoring for decentralized RPC node selection#631
Max-Owolabi wants to merge 1 commit into
Smartdevs17:mainfrom
Max-Owolabi:fix/612-implement-node-reputation-scoring-for-decentralized-rpc-node-selection

Conversation

@Max-Owolabi

Copy link
Copy Markdown

Summary

  • Implements NodeReputationService with 40/30/20/10 weighted scoring (success rate, inverse latency, freshness, liveness)
  • Adds NodeSelector with weighted random selection and primary/secondary/tertiary fallback chains
  • Persists scores in Redis with 5-minute TTL via NodeScoreCache
  • Dead node detection (5 consecutive failures), circuit breaker when all nodes dead, and monitoring metrics

Test plan

  • Unit tests for NodeReputationService, NodeSelector, NodeScoreCache, and NodeReputationMetrics
  • Verified reputation formula, dead node detection, circuit breaker, and fallback chain ordering

Closes #612

Made with Cursor

Adds NodeReputationService, NodeSelector, Redis score cache, node registry, and monitoring metrics per issue Smartdevs17#612. Closes Smartdevs17#612

Co-authored-by: Cursor <cursoragent@cursor.com>
@drips-wave

drips-wave Bot commented Jun 23, 2026

Copy link
Copy Markdown

@Max-Owolabi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Implement node reputation scoring for decentralized RPC node selection

1 participant