Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

fix: 🐛 Aptos: Add Aptos network tx mutex to prevent sequence number collisions #98

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

JesseTheRobot
Copy link
Member

This PR fixes an issue caused by creating & dispatching multiple Aptos network Txs in a short period of time, causing 'later' transactions to outright fail due to the sequence number overlapping.
The chosen fix is a simple async mutex, that locks createTx until the tx has been dispatched and confirmed to the network.

Copy link
Contributor

@joshbenaron joshbenaron left a comment

Choose a reason for hiding this comment

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

LGTM

@JesseTheRobot JesseTheRobot merged commit 7aec711 into main Jun 29, 2023
@JesseTheRobot JesseTheRobot deleted the fix/aptos-concurrent-fund branch June 29, 2023 09:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants