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]: Spend-Output monitoring might have a rare edge case where it misses the spend of an output. #8120

Open
ziggie1984 opened this issue Oct 27, 2023 · 2 comments
Labels
bug Unintended code behaviour needs triage P1 MUST be fixed or reviewed

Comments

@ziggie1984
Copy link
Collaborator

There are reported cases (#8028) where a noderunner had invalid values in his height hint cache leading to lnd not recognizing already spent outputs as spent. Using the config setting --height-hint-cache-query-disable in lnd, these situation were resolved. Maybe the historical recan logic has a race condition where it misses a spend somehow which eventually updates the height hint cache and therefore never recovering the monitored outputs because the height hint cache will be queried for any other historical rescan if we do not actively disable it.

I was not able to reproduce this issue so far.

@ziggie1984 ziggie1984 added bug Unintended code behaviour needs triage labels Oct 27, 2023
@Crypt-iQ
Copy link
Collaborator

Did this happen in one of the cases where bitcoind's rpc serial version was set to the legacy witness encoding?

@ziggie1984
Copy link
Collaborator Author

Yes the case I referenced had this setting on (rpcserialversion=0), but I am not sure how this could impact the monitoring because we are checking for outputs only ? Moreover after he set the --height-hint-cache-query-disable the historical rescan did work and lead to the situation where the preimage witness check happend (leading us to his problem of the rpcserialversion setting).

@saubyk saubyk added the P1 MUST be fixed or reviewed label Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unintended code behaviour needs triage P1 MUST be fixed or reviewed
Projects
None yet
Development

No branches or pull requests

3 participants