Skip to content

Flatten ChannelMonitor substructs that don't add clarity #558

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

Merged
merged 2 commits into from
Apr 19, 2020

Conversation

TheBlueMatt
Copy link
Collaborator

The new OnchainDetection struct (which is the remnants of the old
KeyStorage enum, which was removed in 1dbda4f)
doesn't really add any clarity to ChannelMonitor, so best to just
drop it and move its members into ChannelMonitor directly.

Copy link
Contributor

@valentinewallace valentinewallace left a comment

Choose a reason for hiding this comment

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

Always nice to end up with less code than you started with!
LGTM 🏄‍♀️

The new OnchainDetection struct (which is the remnants of the old
KeyStorage enum, which was removed in 1dbda4f)
doesn't really add any clarity to ChannelMonitor, so best to just
drop it and move its members into ChannelMonitor directly.
@TheBlueMatt TheBlueMatt merged commit b9db2ec into lightningdevkit:master Apr 19, 2020
@TheBlueMatt TheBlueMatt mentioned this pull request Apr 19, 2020
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.

2 participants