Skip to content

Fix Soroswap rewriting - #48

Merged
Shaptic merged 1 commit into
stellar:automationfrom
drebelsky:fix_soroswap_footprint
Sep 29, 2026
Merged

Shaptic merged 1 commit into
stellar:automationfrom
drebelsky:fix_soroswap_footprint

Conversation

@drebelsky

Copy link
Copy Markdown

Previously, the union pointers were shared across all rewrites causing an extra two LedgerKeys to get added to most Soroswap transactions (7 entries get written instead of the necessary 5).

Previously, the union pointers were shared across all rewrites causing
an extra two LedgerKeys to get added to most Soroswap transactions.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 28, 2026 19:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved review issues remain.

Review effort: Lite
Findings: None

What changed in this PR

Fixes Soroswap footprint rewriting by preventing shared ledger-key templates from being mutated across transactions.

Changes:

  • Clone affected ledger-key union pointers before rewriting.
  • Add sequential and concurrent regression tests.
File Description
cmd/​tx-load-test/​soroswap/​support_test.go Adds immutability and concurrency regression coverage.
cmd/​tx-load-test/​soroswap/​rewrite.go Prevents shared ledger-key data from being mutated.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@drebelsky
drebelsky requested a review from Shaptic September 28, 2026 19:11

@Shaptic Shaptic left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't really get what's happening here but I'll allow it

@Shaptic
Shaptic merged commit 3e69641 into stellar:automation Sep 29, 2026
2 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

Development

Successfully merging this pull request may close these issues.

3 participants