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

Revert cached "available" amount if the AddFunds message send fails #4273

Merged
merged 1 commit into from
Oct 9, 2020

Conversation

ingar
Copy link
Contributor

@ingar ingar commented Oct 9, 2020

Problem

In the FundMgr's EnsureAvailable, if the MpoolPush call fails, we have the incorrect value cached in our local map of available funds for a given address, causing subsequent calls to possibly fail.

Solution

In the case of errors after we have updated the cached values, revert the value.

Resolves #4149

@magik6k magik6k merged commit c06f394 into master Oct 9, 2020
@magik6k magik6k deleted the fix/fundsmgr-incorrect-cached-value branch October 9, 2020 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants