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

[Bug] Fix panic in fee estimator from reorgs #434

Merged
merged 1 commit into from Dec 9, 2020
Merged

[Bug] Fix panic in fee estimator from reorgs #434

merged 1 commit into from Dec 9, 2020

Conversation

zquestz
Copy link
Contributor

@zquestz zquestz commented Dec 9, 2020

Quick fix based on the conversation at btcsuite/btcd#1660.

Basically the cause of the double unlock is not really a mutex issue, but a defer issue due to an out of index panic in the fee estimator. This just puts a guard on the index value. When a more robust fix is available we can use that, but with BCH we don't really need a fee estimator to be perfect. =)

@zquestz zquestz requested a review from cpacia December 9, 2020 05:47
@zquestz zquestz changed the title [Bug] Fix panic in fee estimater from reorgs [Bug] Fix panic in fee estimator from reorgs Dec 9, 2020
@cpacia cpacia merged commit 175c1e8 into master Dec 9, 2020
@zquestz zquestz deleted the reorg-panic branch December 9, 2020 18:59
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