Skip to content

feat(simulation): define CongestionInput, implement congestion_score with trend, verify congestion_label and run_scenarios#327

Merged
Tinna23 merged 1 commit into
StellarCommons:mainfrom
prismn:feature/prismn-issues-246-247-248
Jun 26, 2026
Merged

feat(simulation): define CongestionInput, implement congestion_score with trend, verify congestion_label and run_scenarios#327
Tinna23 merged 1 commit into
StellarCommons:mainfrom
prismn:feature/prismn-issues-246-247-248

Conversation

@prismn

@prismn prismn commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Define and verify the congestion scoring API: struct fields, weighted score function with trend support, label mapping, and multi-config runner.

Changes

  • Update CongestionInput struct fields to match specification (recent_avg_fee, capacity_usage, spike_count_1h, trend)
  • Update congestion_score to accept the new fields and incorporate trend direction into the weighted calculation
  • Verify congestion_label correctly maps scores to Normal/Rising/Congested/Critical tiers
  • Verify run_scenarios accepts &[FeeModelConfig] and returns concatenated FeePoint stream
  • Update all benchmarks and integration tests to use the new field names

Issues Closed

Closes #246
Closes #247
Closes #248
Closes #249

…, and verify congestion_label/run_scenarios

- Update CongestionInput fields to match spec: recent_avg_fee, capacity_usage, spike_count_1h, trend (StellarCommons#246)
- Update congestion_score to handle trend field with adjusted weights (StellarCommons#247)
- Verify congestion_label already matches spec (StellarCommons#248)
- Verify run_scenarios already accepts Vec<FeeModelConfig> (StellarCommons#249)

Closes StellarCommons#246
Closes StellarCommons#247
Closes StellarCommons#248
Closes StellarCommons#249
@drips-wave

drips-wave Bot commented Jun 25, 2026

Copy link
Copy Markdown

@prismn 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

@Tinna23 Tinna23 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Tinna23 Tinna23 merged commit c05465e into StellarCommons:main Jun 26, 2026
7 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

2 participants