Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Revamp reaping rules #4371

Merged
merged 6 commits into from
Dec 12, 2019
Merged

Revamp reaping rules #4371

merged 6 commits into from
Dec 12, 2019

Conversation

gavofyork
Copy link
Member

  • Change DispatchQueue into a simple Vec item, which is fine as the entries are small and few (protected by governance). This makes is fast, cheap and easily enumerable.
  • Simplify some APIs due to the above change allowing us to search the queue.
  • Require a proposal preimage to not be in the queue for it to be reaped.
  • Allow the owner of a preimage to reap before the public at large.
  • Add a few tests.

gavofyork and others added 3 commits December 12, 2019 13:28
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com>
Copy link
Member

@shawntabrizi shawntabrizi left a comment

Choose a reason for hiding this comment

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

LGTM

@gavofyork gavofyork merged commit d79e31e into master Dec 12, 2019
@gavofyork gavofyork deleted the gav-less-hash-reaping-rules branch December 12, 2019 10:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants