Skip to content

feat: add cron-style history pruning policy with admin controls - #297

Open
Elizabeth-dev270 wants to merge 2 commits into
ApexChainx:mainfrom
Elizabeth-dev270:Add-a-cron-style-history-pruning-policy-helper
Open

feat: add cron-style history pruning policy with admin controls#297
Elizabeth-dev270 wants to merge 2 commits into
ApexChainx:mainfrom
Elizabeth-dev270:Add-a-cron-style-history-pruning-policy-helper

Conversation

@Elizabeth-dev270

Copy link
Copy Markdown
Contributor

Closes #94

I’m examining the existing pruning logic and test layout first so I can wire the new policy cleanly and verify it with focused regression tests.

No matches found. Your search pattern might be excluded completely by either the search.exclude settings or .*ignore files.
If you believe that it should have results, you can check into the .ignore files and the exclude setting (here are some excluded patterns for reference:[/node_modules,/bower_components,**/.code-search]).
Then if you want to include those files you can call the tool again by setting "includeIgnoredFiles" to true.

I’ve located the existing retention entry points and am reading the surrounding contract state to make the new policy consistent with the current authorization and event model.

I'm adding a small regression test that exercises the intended admin API and storage shape before wiring the implementation, so the failure mode is explicit and reproducible.

Replacing 10 lines with 76 lines in

The new regression coverage is in place; I’m running the targeted Rust tests now to confirm the exact compile/runtime gaps the contract needs to close.

Ran terminal command: cd /workspaces/ApexChainx-Contracts && cargo test -p apexchainx_calculator test_set_and_get_prune_policy_round_trips -- --nocapture

Made changes.

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.

Add a cron-style history-pruning policy helper (prune_policy)

1 participant