-
-
Notifications
You must be signed in to change notification settings - Fork 17
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 commit_sig encoding #33
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #33 +/- ##
========================================
+ Coverage 38.7% 40.1% +1.4%
========================================
Files 17 17
Lines 1899 1927 +28
========================================
+ Hits 734 772 +38
+ Misses 1165 1155 -10
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
f36cb72
to
72d2c8d
Compare
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.
I think this can work as a workaround. Some parts of code are strange (see comments) and lightning_encode
also returns invalid number of bytes written. Otherwise LGTM
lnp2p/src/bolt/bolt2.rs
Outdated
|
||
let buf: Vec<u8> = vec![]; | ||
e.write_all(&buf)?; | ||
Ok(buf.len()) |
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.
Can you pls explain what this code tries to achieve?
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.
Return the number of bytes.
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.
It will always return zero. It does nothing
72d2c8d
to
5f09112
Compare
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.
ACK 5f09112
Hi @dr-orlovsky,
I tried to solve this issue related to this comment.