Skip to content

feat: Enhance Stellar with concurrent transaction support#423

Merged
dylankilkenny merged 3 commits into
mainfrom
support-concurrent-txs-stellar
Aug 18, 2025
Merged

feat: Enhance Stellar with concurrent transaction support#423
dylankilkenny merged 3 commits into
mainfrom
support-concurrent-txs-stellar

Conversation

@dylankilkenny
Copy link
Copy Markdown
Member

Summary

  • Added concurrent_transactions option to Stellar relayer policies, allowing for parallel processing of transactions. Set on a per relayer basis.
  • Adjusted stellar transaction logic to respect new concurrent_transactions flag and allow concurrent processing.
  • Updated OpenAPI documentation to reflect new policy options.
  • Modified example configurations to demonstrate the use of concurrent transactions.

Testing Process

Checklist

  • Add a reference to related issues in the PR description.
  • Add unit tests if applicable.

Signed-off-by: Dylan Kilkenny <dylankilkenny95@gmail.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 13, 2025

Codecov Report

❌ Patch coverage is 98.13084% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.7%. Comparing base (4ee9267) to head (2392973).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/domain/transaction/stellar/prepare/mod.rs 97.7% 3 Missing ⚠️
.../domain/transaction/stellar/stellar_transaction.rs 98.4% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##            main    #423    +/-   ##
======================================
  Coverage   92.7%   92.7%            
======================================
  Files        217     217            
  Lines      73093   73295   +202     
======================================
+ Hits       67788   67992   +204     
+ Misses      5305    5303     -2     
Flag Coverage Δ
integration 0.5% <0.0%> (-0.1%) ⬇️
properties <0.1% <0.0%> (-0.1%) ⬇️
unittests 92.7% <98.1%> (+<0.1%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Collaborator

@zeljkoX zeljkoX left a comment

Choose a reason for hiding this comment

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

LGTM


pub fn concurrent_transactions_enabled(&self) -> bool {
if let RelayerNetworkPolicy::Stellar(policy) = &self.relayer().policies {
policy.concurrent_transactions.unwrap_or(false)
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.

maybe to define constant with default value.

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.

With upcoming Stellar work I wonder it okay to use false as default value?

Copy link
Copy Markdown
Member Author

@dylankilkenny dylankilkenny Aug 15, 2025

Choose a reason for hiding this comment

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

Added! Best to keep false as default as only with special transaction operations will concurrency work

Signed-off-by: Dylan Kilkenny <dylankilkenny95@gmail.com>
Signed-off-by: Dylan Kilkenny <dylankilkenny95@gmail.com>
Copy link
Copy Markdown
Contributor

@tirumerla tirumerla left a comment

Choose a reason for hiding this comment

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

lgtm

@dylankilkenny dylankilkenny merged commit 7e7fb4f into main Aug 18, 2025
23 of 24 checks passed
@dylankilkenny dylankilkenny deleted the support-concurrent-txs-stellar branch August 18, 2025 16:40
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants