Skip to content

[DK][SSAV2] pass the selected_parent into remove_bounded_merge_breaking_parents - #1122

Open
D-Stacks wants to merge 4 commits into
kaspanet:dagknightfrom
D-Stacks:dk_pass_selected_parent_into_remove_bounded_breaking_parents_call
Open

D-Stacks wants to merge 4 commits into
kaspanet:dagknightfrom
D-Stacks:dk_pass_selected_parent_into_remove_bounded_breaking_parents_call

Conversation

@D-Stacks

@D-Stacks D-Stacks commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

This PR passes the selected_parent explicitly into remove_bounded_merge_breaking_parents, Since we know the SP beforehand this avoids unnecessary re-runs of dagknight in remove_bounded_merge_breaking_parents to re-establish the SP.


fn remove_bounded_merge_breaking_parents(
&self,
selected_parent: Hash,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Since the signature of this function is changing, what do you think about simply creating pick_virtual_parents_v2 and remove_bounded_merge_breaking_parents so we can more-freely change the behavior here without worrying about backward compatibility with what GD needs/expects?

@D-Stacks D-Stacks Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I think this is worth-while for separation of concerns regarding pre- and post dk handling. I created a separate PR for it, here:

#1123

it also changes some handling of the testnet wiring.

After that is merged I will update my other PRs to it.

@D-Stacks
D-Stacks marked this pull request as draft September 7, 2026 11:12
@D-Stacks

D-Stacks commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator Author

converted to draft pending #1123

@D-Stacks
D-Stacks marked this pull request as ready for review September 19, 2026 12:30
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.

2 participants