Skip to content
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

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

crisdut
Copy link
Member

@crisdut crisdut commented Apr 3, 2023

Hi @dr-orlovsky,

I tried to solve this issue related to this comment.

@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2023

Codecov Report

Merging #33 (72d2c8d) into master (b35c2e9) will increase coverage by 1.4%.
The diff coverage is 100.0%.

📣 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     
Impacted Files Coverage Δ
lnp2p/src/bolt/bolt2.rs 44.7% <100.0%> (+7.4%) ⬆️

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@dr-orlovsky dr-orlovsky left a 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

Comment on lines 747 to 750

let buf: Vec<u8> = vec![];
e.write_all(&buf)?;
Ok(buf.len())
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Contributor

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

lnp2p/src/bolt/bolt2.rs Outdated Show resolved Hide resolved
lnp2p/src/bolt/bolt2.rs Outdated Show resolved Hide resolved
lnp2p/src/bolt/bolt2.rs Show resolved Hide resolved
Copy link
Contributor

@dr-orlovsky dr-orlovsky left a comment

Choose a reason for hiding this comment

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

ACK 5f09112

@dr-orlovsky dr-orlovsky merged commit 13c15a8 into LNP-WG:master Apr 3, 2023
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.

3 participants