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(parachain): Create struct for Approval Distribution Message #3326

Merged
merged 5 commits into from
Jun 21, 2023

Conversation

edwardmack
Copy link
Contributor

Changes

Tests

go test github.com/ChainSafe/gossamer/lib/parachain -v

Issues

Closes: #3288

Primary Reviewer

@kishansagathiya

@kanishkatn
Copy link
Contributor

Do we wanna merge it to development or feat/parachain?

@edwardmack
Copy link
Contributor Author

Do we wanna merge it to development or feat/parachain?

It should be merged to feat/parachain but it depends on PR #3315 which was merged to development. Should we rebase feat/parachain onto development first? Or should I change this PR to merge to feat/parachain now knowing that we'll rebase later?

@kanishkatn
Copy link
Contributor

Yes, let's rebase it. I can do it!

@edwardmack edwardmack changed the base branch from development to feat/parachain June 15, 2023 15:05
@kanishkatn
Copy link
Contributor

It's protected, can't touch it. @timwu20 help!

Copy link
Contributor

@kishansagathiya kishansagathiya left a comment

Choose a reason for hiding this comment

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

Looks good. Most of the of review-comments are minor.

I think there is a scope to improve code-comments since many of them are missing verbs. I have pointed out some of them, but not all.

lib/parachain/networkprotocol.go Outdated Show resolved Hide resolved
lib/parachain/networkprotocol_test.go Outdated Show resolved Hide resolved
lib/parachain/networkprotocol.go Outdated Show resolved Hide resolved
lib/parachain/networkprotocol.go Outdated Show resolved Hide resolved
lib/parachain/networkprotocol_test.go Outdated Show resolved Hide resolved
lib/parachain/networkprotocol.go Outdated Show resolved Hide resolved
lib/parachain/networkprotocol.go Outdated Show resolved Hide resolved
lib/parachain/networkprotocol.go Outdated Show resolved Hide resolved
lib/parachain/networkprotocol.go Outdated Show resolved Hide resolved
lib/parachain/networkprotocol.go Outdated Show resolved Hide resolved
Copy link
Contributor

@kanishkatn kanishkatn left a comment

Choose a reason for hiding this comment

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

lgtm! We should prolly rename the file to approval_subsystem.go #3316 (comment)

lib/parachain/approval_distribution_message.go Outdated Show resolved Hide resolved
Copy link
Contributor

@jimjbrettj jimjbrettj left a comment

Choose a reason for hiding this comment

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

lgtm

@edwardmack edwardmack force-pushed the ed/approvalDistributionMessageStruct branch from 76b946a to 4612a70 Compare June 21, 2023 14:41
@edwardmack
Copy link
Contributor Author

lgtm! We should prolly rename the file to approval_subsystem.go #3316 (comment)

I'm open to renaming as necessary, note that I renamed this in response to this comment #3326 (comment) @kishansagathiya What do you think of approval_subsystem.go?

@kanishkatn
Copy link
Contributor

I'm open to renaming as necessary, note that I renamed this in response to this comment #3326 (comment) @kishansagathiya What do you think of approval_subsystem.go?

No, it's okay for now.
I found out how complex these types can get today. I've also started creating separate files for them!

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.

Create a go struct for Approval Distribution Message
4 participants