Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legacy tx sets: avoid using read-only LCL meant for main thread only #4659

Merged
merged 2 commits into from
Mar 4, 2025

Conversation

marta-lokhova
Copy link
Contributor

Looks like parallel ledger close is tripping threadIsMain assert in getLastClosedLedgerHeader in prepareForApply. This only impacts new networks in protocol 0 (which use legacy tx sets). Fix is easy: callers of prepareForApply typically hold a thread-safe LCL already, so use that instead. We didn't catch this in tests because tests use a custom upgrade logic, such that we upgrade to generalized transactions sets on genesis.

dmkozh
dmkozh previously approved these changes Mar 4, 2025
@marta-lokhova marta-lokhova added this pull request to the merge queue Mar 4, 2025
Merged via the queue into stellar:master with commit adb6f3f Mar 4, 2025
13 checks passed
@marta-lokhova marta-lokhova deleted the newNetworkAssert branch March 4, 2025 21:34
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.

2 participants