Repository navigation
Feat(newstate): prune new state in runtime - #4192
Conversation
|
Claude finished @NazariiDenha's task in 36m 3s —— View job Review of PR #4192 — prune new state in runtime
Blocker
ImportantNone beyond the blocker above — the core pruning logic in Nit
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4192 +/- ##
==========================================
- Coverage 80.89% 80.82% -0.08%
==========================================
Files 509 509
Lines 39102 39161 +59
==========================================
+ Hits 31632 31650 +18
- Misses 7464 7505 +41
Partials 6 6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
EgeCaner
left a comment
There was a problem hiding this comment.
The range-delete suggestion isn't a blocker, but I'd like to see the test coverage addressed before merge.
f47f546 to
82130d2
Compare
82130d2 to
300c01b
Compare
|
Claude finished @NazariiDenha's task in 19m 41s —— View job Review of latest changes (vs
|
300c01b to
6916ab9
Compare
|
Claude finished @NazariiDenha's task in 9m 41s —— View job Review of latest changes (vs
|
Title(Describe updated until commit 5055241)Feat(newstate): prune new state in runtime PR TypeEnhancement, Tests Description
|
| Relevant files | |||
|---|---|---|---|
| Enhancement |
| ||
| Tests |
|
PR Reviewer Guide 🔍(Review updated until commit 5055241)Here are some key observations to aid the review process:
|
6916ab9 to
44886bb
Compare
44886bb to
5055241
Compare
|
Claude finished @NazariiDenha's task in 3m 12s —— View job Review of latest changes (vs
|
|
Persistent review updated to latest commit 5055241 |

PR Type
Enhancement, Tests
Description
Add new-state layout detection and history pruning to
PruneUptoDelete superseded per-key history entries via
supersededPrunerParametrize pruner tests over deprecated and new layouts
Assert history read answers unchanged after pruning
File Walkthrough
accessors.go
Add new-state history pruning to prunerpruner/accessors.go
hasNewStateHistoryto detect whether state history uses thenew-state layout
pruneNewStateHistoryFromUpdatedeleting each key's supersededentry below the block for storage, nonce, and class-hash history
buckets
supersededPrunerthat reuses one iterator per bucket tolocate and delete the latest entry below a block
PruneUptoandpruneHashKeyedUptotopick the appropriate pruning path
accessors_test.go
Run pruner tests over both layoutspruner/accessors_test.go
layoutsvar andstoreBlockshelper storing blocks in either layoutvia
testutils.StoreBlockWithLayoutTestPruneUpto, no-op, resume-after-cancel, and rollingcarve-out tests over both layouts
HistoryAnswersare identical before and after pruning to verifypruning preserves history semantics