Skip to content
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

feat: improved how stale data is purged in the witnesser pallet #2117

Merged
merged 8 commits into from
Sep 7, 2022

Conversation

syan095
Copy link
Contributor

@syan095 syan095 commented Sep 5, 2022

Stale data is now purged in on_idle hook.
Data is purged based on weights available

Closes #2103

@syan095 syan095 marked this pull request as ready for review September 6, 2022 04:15
@syan095 syan095 requested review from dandanlen and kylezs and removed request for dandanlen September 6, 2022 04:15
Copy link
Collaborator

@dandanlen dandanlen left a comment

Choose a reason for hiding this comment

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

Some minor suggestions, but LGTM overall.

state-chain/pallets/cf-witnesser/src/lib.rs Outdated Show resolved Hide resolved
state-chain/pallets/cf-witnesser/src/benchmarking.rs Outdated Show resolved Hide resolved
state-chain/pallets/cf-witnesser/src/tests.rs Outdated Show resolved Hide resolved
state-chain/pallets/cf-witnesser/src/tests.rs Outdated Show resolved Hide resolved
state-chain/pallets/cf-witnesser/src/benchmarking.rs Outdated Show resolved Hide resolved
state-chain/pallets/cf-witnesser/src/tests.rs Show resolved Hide resolved
state-chain/pallets/cf-witnesser/src/tests.rs Outdated Show resolved Hide resolved
state-chain/pallets/cf-witnesser/src/lib.rs Outdated Show resolved Hide resolved
state-chain/pallets/cf-witnesser/src/lib.rs Outdated Show resolved Hide resolved
* develop:
  Chore/refactor remove witness (#2127)
  Refactor: Changed participants from`Vec` to `BTreeSet` (#2116)
  chore: initial practices readme (#2086)
@syan095 syan095 requested review from dandanlen and kylezs September 7, 2022 06:18
Copy link
Contributor

@kylezs kylezs left a comment

Choose a reason for hiding this comment

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

Looks good to me, will let Dan give final approve.

Copy link
Collaborator

@dandanlen dandanlen left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@dandanlen dandanlen changed the title Improved how stale data is purged in the witnesser pallet feat: improved how stale data is purged in the witnesser pallet Sep 7, 2022
@dandanlen dandanlen merged commit 7bec2eb into develop Sep 7, 2022
@dandanlen dandanlen deleted the fix/purge-witnesser-data branch September 7, 2022 12:27
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.

Prevent block bloat when purging witness data
3 participants