Skip to content

Conversation

@avitenzer
Copy link
Collaborator

@avitenzer avitenzer commented Jan 28, 2026

Key Changes:

  • Constant Definitions (selection.go):

  • Quorum → Stateless - "retries enabled, seeks majority consensus from node responses"

  • BestResult → Stateful - "all top providers at once, waits for best result (no retries)"

  • Logic Updates: All comparisons and assignments updated:

  • selection == Quorum → selection == Stateless

  • selection == BestResult → selection == Stateful

  • selection != BestResult → selection != Stateful

  • Comments Updated: All relevant comments now reference the new names

  • Tests Updated: All test cases now use the new constant names

This commit changes the default selection strategy in the relay processor and related components from Quorum to Stateless. The updates include modifications to the relay state machine, tests, and selection constants to reflect this change. The Stateless selection allows for retries and seeks majority consensus from node responses, enhancing the handling of node errors and improving overall reliability in processing results.
Updated comments for the Stateless and Stateful selection strategies to enhance clarity. The Stateless selection now emphasizes retries and seeking node responses, while the Stateful selection description has been expanded to include waiting for all providers to return a response.
@codecov
Copy link

codecov bot commented Jan 28, 2026

Codecov Report

❌ Patch coverage is 75.00000% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
protocol/relaycore/relay_processor.go 83.33% 1 Missing ⚠️
...otocol/rpcconsumer/consumer_relay_state_machine.go 66.66% 1 Missing ⚠️
.../rpcsmartrouter/smartrouter_relay_state_machine.go 66.66% 1 Missing ⚠️
Flag Coverage Δ
consensus 8.54% <ø> (+<0.01%) ⬆️
protocol 33.83% <75.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
protocol/relaycore/relay_processor.go 50.25% <83.33%> (+0.12%) ⬆️
...otocol/rpcconsumer/consumer_relay_state_machine.go 81.65% <66.66%> (ø)
.../rpcsmartrouter/smartrouter_relay_state_machine.go 88.23% <66.66%> (ø)

... and 15 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

Test Results

    7 files  ±0     85 suites  ±0   31m 25s ⏱️ -21s
3 320 tests ±0  3 319 ✅ ±0  1 💤 ±0  0 ❌ ±0 
3 513 runs  ±0  3 512 ✅ ±0  1 💤 ±0  0 ❌ ±0 

Results for commit 3d43961. ± Comparison against base commit e4f7444.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants