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

Avoid writing ChannelManager when hitting lnd bug 6039 #2940

Conversation

TheBlueMatt
Copy link
Collaborator

When we hit lnd bug 6039, we end up sending error messages to peers in a loop. This should be fine, but because we used the generic PersistenceNotifierGuard::notify_on_drop lock above the specific handling, we end up writing ChannelManager every time we manage a round-trip to our peer.

This can add up quite quickly, and isn't actually changing, so we really need to avoid writing the ChannelManager in this case.

When we hit lnd bug 6039, we end up sending error messages to peers
in a loop. This should be fine, but because we used the generic
`PersistenceNotifierGuard::notify_on_drop` lock above the specific
handling, we end up writing `ChannelManager` every time we manage a
round-trip to our peer.

This can add up quite quickly, and isn't actually changing, so we
really need to avoid writing the `ChannelManager` in this case.
@TheBlueMatt
Copy link
Collaborator Author

Identical to #2937, rebased.

@TheBlueMatt TheBlueMatt merged commit 9118e79 into lightningdevkit:0.0.118-bindings Mar 14, 2024
1 of 15 checks passed
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

1 participant