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

Retry spendable outputs individually #667

Merged
merged 1 commit into from Jul 19, 2023
Merged

Retry spendable outputs individually #667

merged 1 commit into from Jul 19, 2023

Conversation

benthecarman
Copy link
Collaborator

@benthecarman benthecarman commented Jul 14, 2023

This might help with missed swept force closes

let _ = event_handler.handle_spendable_outputs(&[o.clone()]).await;
}
};
persister.clear_failed_spendable_outputs()?;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why clear them when they failed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

Err(e) => log_warn!(logger, "Failed to retry spendable outputs {e}"),
Err(_) => {
// retry them individually then delete
// if there was only one we don't need to retry
Copy link
Contributor

Choose a reason for hiding this comment

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

why?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We were batching them all together, if one has already been swept but one not, then the whole thing would fail. This should help prevent that.

@benthecarman benthecarman merged commit 860907c into master Jul 19, 2023
9 checks passed
@benthecarman benthecarman deleted the better-retry branch July 19, 2023 00:02
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.

None yet

2 participants