-
Notifications
You must be signed in to change notification settings - Fork 411
Fix serialization expected lengths and check them in test/fuzzing #854
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
Fix serialization expected lengths and check them in test/fuzzing #854
Conversation
Codecov Report
@@ Coverage Diff @@
## main #854 +/- ##
==========================================
- Coverage 90.59% 90.35% -0.25%
==========================================
Files 51 57 +6
Lines 27109 29353 +2244
==========================================
+ Hits 24560 26522 +1962
- Misses 2549 2831 +282
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement! 🥇 Minor feedback only here.
@@ -1611,7 +1611,7 @@ impl Readable for UnsignedNodeAnnouncement { | |||
} | |||
} | |||
|
|||
impl_writeable_len_match!(NodeAnnouncement, { | |||
impl_writeable_len_match!(NodeAnnouncement, <=, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool that macros can allow this type of thing!
a3163f1
to
ee0ffe5
Compare
Used the constant instead and added a comment to clarify it:
|
No description provided.