Skip to content

Add pruning of generations call messages#2511

Open
ross-weir wants to merge 12 commits intodevfrom
ross/generation-gc-admin-call
Open

Add pruning of generations call messages#2511
ross-weir wants to merge 12 commits intodevfrom
ross/generation-gc-admin-call

Conversation

@ross-weir
Copy link
Member

Description

Adds 2 pruning generation call messages:

  1. Admin based that can prune a list of credential ids of anyone. Uses the chain state admin (for backwards compat) - allows state clean-up
  2. User based that can prune their own credential id corresponding to the address that sends it - allows fixing borked generations (IIRC u64::max can cause a break)
  • I have updated CHANGELOG.md with a new entry if my PR makes any breaking changes or fixes a bug. If my PR removes a feature or changes its behavior, I provide help for users on how to migrate to the new behavior.
  • I have carefully reviewed all my Cargo.toml changes before opening the PRs. (Are all new dependencies necessary? Is any module dependency leaked into the full-node (hint: it shouldn't)?)

Linked Issues

  • Fixes # (issue, if applicable)
  • Related to # (issue)

Testing

Describe how these changes were tested. If you've added new features, have you added unit tests?

Docs

Describe where this code is documented. If it changes a documented interface, have the docs been updated?

Rendered docs are available at https://sovlabs-ci-rustdoc-artifacts.us-east-1.amazonaws.com/<BRANCH_NAME>/index.html

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@ross-weir ross-weir force-pushed the ross/generation-gc-admin-call branch from 26beaed to b211a5d Compare February 23, 2026 13:00
ross-weir added a commit that referenced this pull request Feb 23, 2026
@ross-weir ross-weir force-pushed the ross/generation-gc-admin-call branch from ab80ae0 to 8d7fbfb Compare February 27, 2026 09:16
@ross-weir ross-weir force-pushed the ross/generation-gc-admin-call branch from 7198e93 to 08a943c Compare March 2, 2026 10:53
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