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

fix: solana concurrency issue #397

Merged
merged 2 commits into from
Oct 21, 2024
Merged

Conversation

sherpalden
Copy link
Collaborator

@sherpalden sherpalden commented Oct 18, 2024

When sending multiple transactions concurrently to the SOLANA chain, the contract had a bug of dirty reads of the last_saved_req_id(all proxy requests got the same last_saved_req_id) before the message was received which failed all the concurrent transactions except the first one. This PR includes the changes to be made on the relayer side to incorporate the changes made on the contract side to fix the bug. The solution was to create a proxy request account using src_nid, src_conn_sn, and the dst_conn_addr of the relayer.

@sherpalden sherpalden added bug Something isn't working Solana labels Oct 18, 2024
@sherpalden sherpalden self-assigned this Oct 18, 2024
@sherpalden sherpalden merged commit 436596e into main Oct 21, 2024
5 checks passed
@sherpalden sherpalden deleted the fix/solana_concurrency_error branch October 21, 2024 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Solana
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants