feat(simulation): implement capacity pressure model, duration-based simulation, and diurnal tx scaling#330
Merged
Tinna23 merged 1 commit intoJun 26, 2026
Conversation
…s, diurnal tx count - Add duration_secs field to NetworkLoadConfig (StellarCommons#242) - Add ledger_count helper and run method for full-duration simulation (StellarCommons#243) - Add capacity_pressure_fee function to scale fees by capacity pressure (StellarCommons#244) - Add diurnal_tx_count to scale tx volume by hour (StellarCommons#245) - Add doc tests for capacity_pressure_fee Closes StellarCommons#242 Closes StellarCommons#243 Closes StellarCommons#244 Closes StellarCommons#245
|
@mxllv 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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implement the network load simulation API: struct definition with duration field, throughput simulator runner, capacity pressure fee scaling, and diurnal load pattern.
Changes
duration_secsfield toNetworkLoadConfigandledger_count()helper ([devkit/simulation] Define NetworkLoadConfig struct #242)run()method to simulate full-duration ledger events ([devkit/simulation] Implement ledger throughput simulator #243)capacity_pressure_feefree function to scale fees linearly with pressure ([devkit/simulation] Implement capacity pressure model #244)diurnal_tx_countmethod to scale tx volume by hour of day ([devkit/simulation] Implement diurnal load pattern #245)Issues Closed
Closes #242
Closes #243
Closes #244
Closes #245