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 tpool race #89

Merged
merged 3 commits into from
Aug 29, 2024
Merged

Fix tpool race #89

merged 3 commits into from
Aug 29, 2024

Conversation

n8maninger
Copy link
Member

Fixes a race condition primarily seen when exchanging v2 transaction sets in RHP4. The renter sends the host a transaction set with a particular basis. If the tip changes before the RPC completes and the transaction includes ephemeral outputs, the transaction set will be invalidated and the RPC will fail. This fixes that race by changing the tpool to update the ephemeral state elements and proofs when updating the transaction set basis.

ChrisSchinnerl
ChrisSchinnerl previously approved these changes Aug 26, 2024
wallet/update.go Show resolved Hide resolved
@n8maninger n8maninger merged commit d798f1f into master Aug 29, 2024
9 checks passed
@n8maninger n8maninger deleted the nate/tpool-race branch August 29, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants