Skip to content

Implement and document Channel/ChannelManager (de)serialization #223

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

Conversation

TheBlueMatt
Copy link
Collaborator

@TheBlueMatt TheBlueMatt commented Oct 25, 2018

Based on #217 and #222.

I'm sure there are bugs hiding in various state transitions and interaction with serialize/deserialize, and definitely need to think harder about potential for funds loss on deserializing old states with pending HTLC closure due to conflicts between deserialized ChannelManager/ChannelMonitors, but need to get the big API changes landed here first.

@TheBlueMatt TheBlueMatt added this to the 0.0.6 milestone Oct 25, 2018
@TheBlueMatt TheBlueMatt force-pushed the 2018-10-chanmanager-serialize branch 5 times, most recently from 87b62e0 to a56e717 Compare October 26, 2018 02:12
@yuntai
Copy link
Contributor

yuntai commented Oct 26, 2018

think there is a bug in one condition checking in fn send_commitment().

https://github.com/rust-bitcoin/rust-lightning/pull/223/files#diff-40049ab371072bb899cde6c5f42bcae6R3131

was not sure comment on the closed pr get notified.

@TheBlueMatt
Copy link
Collaborator Author

Hmm, github doesn't auto-open files so your like is actually busted. Can you comment on the line you think is wrong?

@TheBlueMatt TheBlueMatt force-pushed the 2018-10-chanmanager-serialize branch 4 times, most recently from da37a9b to 7fd3f11 Compare October 26, 2018 21:24
@yuntai
Copy link
Contributor

yuntai commented Oct 27, 2018

#213 (comment)

this link works?

@TheBlueMatt
Copy link
Collaborator Author

Oops, indeed, will fix in #226.

Antoine Riard and others added 16 commits October 27, 2018 09:34
Extend KeyStorage with delayed_payment_base_key and per_commitment_point
to derive local_delayed private key
Move ChannelKeys into keysinterface for generate a set of it from
master_seed and change return type to panic on bogus data
…nnel

Drop channel_monitor_claim_key from ChannelKeys
This greatly simplifies clients of PeerHandler, and because almost
all response messages have already been moved to process_events
this doesn't change much effeciency-wise.
@TheBlueMatt TheBlueMatt force-pushed the 2018-10-chanmanager-serialize branch from 7fd3f11 to 3b18677 Compare October 27, 2018 13:44
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