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(client): perform re-attempts to clear pending transactions #1533

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

RolandSherwin
Copy link
Member

Description

reviewpad:summary

return Err(WalletError::CouldNotSendMoney(
"Wallet has pre-unconfirmed transactions. Resend, and try again.".to_string(),
));
if attempts > 10 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a thought but I get the feeling we could be extracting important values like this into constants. Then we could move them out and label them so we are more aware of their importance.

https://doc.rust-lang.org/rust-by-example/custom_types/constants.html

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, you're right. Also, this functionality is used a couple of times. Will just extract it out.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice one! 👍

@JasonPaulGithub JasonPaulGithub added Merge When Ready PR is in "Merge When Ready" Small Pull request is small labels Mar 28, 2024
@joshuef joshuef added this pull request to the merge queue Mar 29, 2024
Merged via the queue into maidsafe:main with commit dcb4dc9 Mar 29, 2024
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merge When Ready PR is in "Merge When Ready" Small Pull request is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants