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 pending order of stakeMotion transactions #2760

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

chmanie
Copy link
Member

@chmanie chmanie commented Jul 23, 2024

Description

In very specific cases there can be a problem with two transactions appearing to be pending when staking a motion (see @arrenv's issue for a full walkthrough).

This is a problem with the order certain transaction functions are called. In this case a transactions further down is set to pending while two others are not completed yet. This PR fixes that. For a fix that resolves this for good see my Transactions API refactor in which this can't happen.

Testing

Follow the steps in @arrenv's issue. At least you should not be seeing two loading spinners.

Diffs

Changes 🏗

  • Fix stakeMotion action pending transaction order
  • Add some more transactionPendings for good measure

Resolves #2739 (at least partly)

@chmanie chmanie requested review from a team as code owners July 23, 2024 22:48
Copy link
Contributor

@iamsamgibbs iamsamgibbs left a comment

Choose a reason for hiding this comment

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

Nice job with this simple fix. Tested and working as expected!

Screenshot 2024-07-24 at 08 40 43

Copy link
Contributor

@davecreaser davecreaser left a comment

Choose a reason for hiding this comment

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

Nice one @chmanie, works like a charm 🚀

Screenshot 2024-07-24 at 13 24 58

@mmioana mmioana self-requested a review July 24, 2024 15:32
Copy link
Contributor

@mmioana mmioana left a comment

Choose a reason for hiding this comment

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

Nice work on this one @chmanie 👏

Screenshot 2024-07-24 at 17 31 30 Screenshot 2024-07-24 at 17 31 41

@chmanie chmanie merged commit 72cd960 into master Jul 24, 2024
4 of 5 checks passed
@chmanie chmanie deleted the fix/2739-tx-loading-order branch July 24, 2024 17:22
@chmanie chmanie self-assigned this Aug 19, 2024
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.

Issues with Userhub active transactions
4 participants