Skip to content

Publicize UnsignedChannelAnnouncement's excess_data. #2431

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

arik-so
Copy link
Contributor

@arik-so arik-so commented Jul 19, 2023

Making the excess_data field public significantly simplifies writing legible unit tests for the Rapid Gossip Sync Server.

@codecov-commenter
Copy link

codecov-commenter commented Jul 19, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (8a8f29a) 90.26% compared to head (b28769b) 90.26%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2431   +/-   ##
=======================================
  Coverage   90.26%   90.26%           
=======================================
  Files         106      106           
  Lines       55691    55691           
  Branches    55691    55691           
=======================================
  Hits        50271    50271           
  Misses       5420     5420           
Impacted Files Coverage Δ
lightning/src/ln/msgs.rs 84.74% <100.00%> (ø)

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@TheBlueMatt
Copy link
Collaborator

Why does this make the tests simpler? If it's just because it allows constructing, maybe we should just add a constructor?

@TheBlueMatt
Copy link
Collaborator

Ugh I guess these messages are basically POD (well, okay, with vecs lol), we can just expose it.

Making the `excess_data` field public significantly
simplifies writing legible unit tests for the
Rapid Gossip Sync Server.
@arik-so arik-so force-pushed the 2023-07-public-excess-data branch from ce106c0 to b28769b Compare July 20, 2023 18:10
@TheBlueMatt TheBlueMatt merged commit e13ff10 into lightningdevkit:main Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants