Skip to content

Drop old serialization framework #186

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 11 commits into from
Sep 18, 2018

Conversation

TheBlueMatt
Copy link
Collaborator

This builds on #185 and finally drops our old serialization framework, as well as cleans up a few other bits that weren't covered in #185.

@TheBlueMatt TheBlueMatt force-pushed the 2018-09-ser-rework-2 branch 3 times, most recently from e55fa69 to 2c4b1aa Compare September 16, 2018 18:32
Should resolve any performance issues with Vec<u8> serialization.
Fixes a bug introduced in 3e89106
where messages were being encoded with their size instead of their
type.
Also utilizes the new size_hinting in peer_handler
This removes a bunch of potentially new error handling in writers
and the checks were kinda useless anyway - in normal operation we
unwrap()ed anyway, and we're gonna want to use the serializtion
framework for ChannelMonitor/ChannelManager serialization, which
may generate things larger than 64KB anyway.
This lets us add some untyped default functions to the trait
@ariard
Copy link

ariard commented Sep 18, 2018

Concept ACK, far less code!

@TheBlueMatt TheBlueMatt merged commit ac821e4 into lightningdevkit:master Sep 18, 2018
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