Skip to content

primitives: minimiseSignedTopology#990

Open
attente wants to merge 2 commits intomasterfrom
minimise-signed-topology
Open

primitives: minimiseSignedTopology#990
attente wants to merge 2 commits intomasterfrom
minimise-signed-topology

Conversation

@attente
Copy link
Copy Markdown
Contributor

@attente attente commented Apr 14, 2026

No description provided.

@attente attente requested review from a team as code owners April 14, 2026 19:18
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a24bb60a27

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +264 to +268
isSubdigestLeaf(topology) ||
isAnyAddressSubdigestLeaf(topology) ||
isNodeLeaf(topology)
) {
return [{ weight: 0n, topology }]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Count subdigest leaves as satisfiable weight in minimizer

minimiseSignedTopology currently buckets subdigest and any-address-subdigest leaves with unsigned signer leaves as weight: 0n, but in recoverTopology those leaves can contribute effectively unlimited weight when the digest matches the config-update payload. In update flows that call this minimizer after recovery (e.g., state/sequence), this causes the algorithm to keep extra signer signatures even when zero signer signatures are needed, so the returned topology is not actually minimal and can inflate encoded signature size/gas.

Useful? React with 👍 / 👎.

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.

1 participant