Skip to content

Conversation

@beer-1
Copy link
Contributor

@beer-1 beer-1 commented Oct 31, 2025

Description

Isolate CheckTx and simulation state from DeliverTx commits by loading the last committed snapshot and keeping the simulation context in sync

Closes: #20685 #23891

@beer-1
Copy link
Contributor Author

beer-1 commented Oct 31, 2025

Hey @aljo242, can you check this approach?

Backport PRs: #25530 #25531

I’ve tested the update using these test cases, and it appears to be working well. However, it’s difficult to merge the tests into the main branch since they depend on some changes in the ante module.

@aljo242
Copy link
Contributor

aljo242 commented Oct 31, 2025

@beer-1 could you please re-open these with signed commits?

…oading the last committed snapshot and keeping the simulation context in sync
@beer-1 beer-1 force-pushed the fix/state-pollution branch from b6870ac to 8f8e43a Compare November 1, 2025 00:41
@beer-1
Copy link
Contributor Author

beer-1 commented Nov 1, 2025

@aljo242 changed to use signed commit

@beer-1
Copy link
Contributor Author

beer-1 commented Nov 3, 2025

I fixed the race data write by changing RWMutex to Mutex

aljo242 and others added 4 commits November 4, 2025 13:32
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…osmos#25535)

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alex | Cosmos Labs <[email protected]>
@beer-1
Copy link
Contributor Author

beer-1 commented Nov 4, 2025

@aljo242 introduced a mutex for cms(CacheMultiStore).stores to prevent data races during lazy loading. This issue was mainly observed in concurrent genesis export tests. and succeed to pass tests locally with update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: simulation is async from the commit and checkTx, so it should use cms with version

2 participants