-
Notifications
You must be signed in to change notification settings - Fork 113
Feat: Merge confirmed Branches with the MasterBranch #1770
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
Conversation
…to feat/mergemaster
96bcd52
to
4b3804e
Compare
# Conflicts: # packages/ledgerstate/branch_dag.go # packages/tangle/booker.go # pkged.go
func (b *Booker) collectShallowLikedParentsBranchIDs(message *Message) (likedBranchIDs, dislikedBranchIDs ledgerstate.BranchIDs, err error) { | ||
likedBranchIDs = ledgerstate.NewBranchIDs() | ||
dislikedBranchIDs = ledgerstate.NewBranchIDs() | ||
message.ForEachParentByType(ShallowLikeParentType, func(parentMessageID MessageID) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
388-416 lines are duplicate of packages/tangle/booker.go:425-453
(dupl)
// the supplied ArithmeticBranchIDs. | ||
func (b *Booker) collectShallowDislikedParentsBranchIDs(message *Message) (dislikedBranchIDs ledgerstate.BranchIDs, err error) { | ||
dislikedBranchIDs = ledgerstate.NewBranchIDs() | ||
message.ForEachParentByType(ShallowDislikeParentType, func(parentMessageID MessageID) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
425-453 lines are duplicate of packages/tangle/booker.go:388-416
(dupl)
} | ||
|
||
// ProcessMessageScenario2 creates a scenario useful to validate strong / weak propagation paths. | ||
//nolint:gomnd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
directive //nolint:gomnd
is unused for linter "gomnd" (nolintlint)
…d add support for multiple branches instead of aggregated branch
Description of change
This PR adds the logic to merge confirmed Branches back to the MasterBranch to keep the network performant.
Type of change
Change checklist