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

feat(network): add wrapper for Option<SignedBlockHeader> and add converters to/from Vec<u8> #2063

Merged
merged 1 commit into from
May 30, 2024

Conversation

ShahakShama
Copy link
Contributor

@ShahakShama ShahakShama commented May 28, 2024

This change is Reviewable

Copy link

codecov bot commented May 28, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 69.66%. Comparing base (c1b85f0) to head (8d44a14).

Files Patch % Lines
crates/papyrus_protobuf/src/converters/header.rs 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2063      +/-   ##
==========================================
- Coverage   69.73%   69.66%   -0.08%     
==========================================
  Files         131      131              
  Lines       17196    17202       +6     
  Branches    17196    17202       +6     
==========================================
- Hits        11992    11983       -9     
- Misses       3880     3896      +16     
+ Partials     1324     1323       -1     

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

Copy link
Contributor

@asmaastarkware asmaastarkware left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ShahakShama)


crates/papyrus_protobuf/src/sync.rs line 41 at r1 (raw file):

// We have this struct in order to implement on it traits.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct BlockHeaderResponse(pub Option<SignedBlockHeader>);

use the same name as in the protobuf, or add TODO to rename it for consistency

@ShahakShama ShahakShama force-pushed the shahak/vec_u8_conv_header_response branch from bdd85e8 to cee22cb Compare May 29, 2024 05:17
Copy link
Contributor Author

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 3 files reviewed, 1 unresolved discussion (waiting on @asmaastarkware)


crates/papyrus_protobuf/src/sync.rs line 41 at r1 (raw file):

Previously, asmaastarkware (asmaa-starkware) wrote…

use the same name as in the protobuf, or add TODO to rename it for consistency

Done.

asmaastarkware
asmaastarkware previously approved these changes May 29, 2024
Copy link
Contributor

@asmaastarkware asmaastarkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 2 of 3 files reviewed, all discussions resolved (waiting on @ShahakShama)

Copy link
Contributor

@DvirYo-starkware DvirYo-starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ShahakShama)

@ShahakShama ShahakShama force-pushed the shahak/vec_u8_conv_header_response branch from cee22cb to 8d44a14 Compare May 30, 2024 08:56
Copy link
Contributor

@DvirYo-starkware DvirYo-starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ShahakShama)

@ShahakShama ShahakShama added this pull request to the merge queue May 30, 2024
Merged via the queue into main with commit dea42e0 May 30, 2024
34 checks passed
@ShahakShama ShahakShama deleted the shahak/vec_u8_conv_header_response branch May 30, 2024 09:08
@github-actions github-actions bot locked and limited conversation to collaborators Jun 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants