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

Use molecule for hopdata and tlc_err #425

Merged
merged 5 commits into from
Jan 2, 2025

Conversation

chenyukang
Copy link
Collaborator

@chenyukang chenyukang commented Dec 27, 2024

removed duplicated unit test by the way.

@chenyukang chenyukang marked this pull request as draft December 27, 2024 12:43
@codecov-commenter
Copy link

codecov-commenter commented Dec 27, 2024

Codecov Report

Attention: Patch coverage is 48.67424% with 813 lines in your changes missing coverage. Please review.

Project coverage is 49.85%. Comparing base (a6e8625) to head (db10653).

Files with missing lines Patch % Lines
src/fiber/gen/fiber.rs 45.13% 812 Missing ⚠️
src/fiber/types.rs 99.03% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #425      +/-   ##
===========================================
+ Coverage    49.80%   49.85%   +0.05%     
===========================================
  Files           47       47              
  Lines        29806    31090    +1284     
===========================================
+ Hits         14845    15501     +656     
- Misses       14961    15589     +628     
Flag Coverage Δ
unittests 49.85% <48.67%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chenyukang chenyukang force-pushed the use-bincode-for-hopdata branch 3 times, most recently from c498de4 to 397ed27 Compare December 27, 2024 15:50
@chenyukang chenyukang changed the title Use bincode for hopdata and remove duplicated unit test Use molecule for hopdata and tlc_err Dec 27, 2024
@chenyukang chenyukang marked this pull request as ready for review December 27, 2024 15:51
@chenyukang chenyukang force-pushed the use-bincode-for-hopdata branch from 397ed27 to a2461cc Compare December 28, 2024 03:50
@chenyukang chenyukang force-pushed the use-bincode-for-hopdata branch from a2461cc to 4e835c3 Compare December 28, 2024 12:57
next_hop: PubkeyOpt,
}

// A ChannelUpdate is a update to the public channel. Newer channel information may be updated with
Copy link
Collaborator

Choose a reason for hiding this comment

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

I prefer to keep ChannelUpdate in gossip.mol, as it is logically more consistent. What is the rational of moving this struct? Did you encountered cyclic dependency issue?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TlcErrData contains a filed of ChannelUpdate, and it seems is weird if we add TlcErrData in gossip

channel_update: Option<ChannelUpdate>,

any other better way.

@quake quake merged commit 384106f into nervosnetwork:develop Jan 2, 2025
18 checks passed
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.

4 participants