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: force wallet refresh after onchain tx broadcasted #2227

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

limpbrains
Copy link
Collaborator

Description

Normally beignet listens to the wallet addresses and automatically starts the update. But just in case subscription failed, run it manually. It will not hurt, since the refreshWallet method is protected by a Promise and can't be run twice at the same time

This should prevent errors when wallet tries to use UTXOs that is already spent

Linked Issues/Tasks

Type of change

Bug fix

Tests

No test

Screenshot / Video

QA Notes

Try to make 2 transactions quickly

@pwltr
Copy link
Collaborator

pwltr commented Sep 11, 2024

If I understand correctly this issue is still there:

Simulator.Screen.Recording.-.iPhone.15.-.2024-09-11.at.13.39.59.mp4

@limpbrains
Copy link
Collaborator Author

New version with refresh after boost broadcast, can you please try it

@pwltr
Copy link
Collaborator

pwltr commented Sep 11, 2024

Still running into to this:

Simulator.Screen.Recording.-.iPhone.15.-.2024-09-11.at.14.02.37.mp4

Also after boosting with RBF the balance is briefly set to 0:

Simulator.Screen.Recording.-.iPhone.15.-.2024-09-11.at.14.04.06.mp4

@pwltr
Copy link
Collaborator

pwltr commented Sep 11, 2024

Codewise this feels like this logic needs to be in a central place (probably beignet) instead of being spread out in multiple places. UTXO state should be always 'fresh', maybe after broadcastTransaction?

EDIT: I think if the automatic update fails it needs to try again

@limpbrains
Copy link
Collaborator Author

I agree there should be a better way

@limpbrains limpbrains marked this pull request as draft September 11, 2024 16:25
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.

2 participants