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

Prevent crash when a transaction is pending in a row #5528

Merged
merged 4 commits into from
Dec 7, 2023

Conversation

oskarleonard
Copy link
Contributor

What was the problem?

This PR resolves #5526

How was it solved?

Check if a transaction is pending before trying to access its block. If it is pending the block object is undefined.

How was it tested?

Doesnt always happen, need to make a transaction pending and keep it pending. Currently testnet has such a transaction so the above how to test works while it is still pending.

  1. Go to /transactions page.
  2. Expected Not crash: Height and Date (which comes from block object) should display a pending symbo, check first row.
image

Copy link
Contributor

@eniolam1000752 eniolam1000752 left a comment

Choose a reason for hiding this comment

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

Changes LGTM

@ManuGowda ManuGowda merged commit d186ae5 into development Dec 7, 2023
6 checks passed
@ManuGowda ManuGowda deleted the 5526-changing-self-stake-crash-wallet-page branch December 7, 2023 09:07
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.

Changing self-stake crashes wallet page
3 participants